]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* cplus_dem.c: Fix typo: intializes -> initializes.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
e182f0a3 12003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2
3 * cplus_dem.c: Fix typo: intializes -> initializes.
4
3343fdd2
AO
52003-02-20 Alexandre Oliva <aoliva@redhat.com>
6
7 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
8 config.status.
9 * configure: Rebuilt.
10
902cf50c
DJ
112003-02-13 Daniel Jacobowitz <drow@mvista.com>
12
13 Fix PR c++/7612.
14 * cplus-dem.c (demangle_signature): Call string_delete.
15 Remove extra string_init.
16 (demangle_arm_hp_template): Call string_delete instead of
17 string_clear. Add missing string_delete call.
18 (demangle_qualified): Add missing string_delete call.
19 (do_type): Remove unused variable btype. Add missing string_delete
20 call. Call string_delete instead of string_clear.
21 (demangle_fund_type): Move variable btype inside of the switch
22 statement. Add missing string_delete call.
23 (do_arg): Call string_delete instead of string_clear. Remove extra
24 string_init.
25 (demangle_nested_args): Free work->previous_argument.
26
7ac27e08
KG
272003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28
29 * acconfig.h: New file. Add uintptr_t.
30 * config.in: Regenerated.
31
b3a8389d
JM
322003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
33
34 * libiberty.texi: Update to GFDL 1.2.
35
d8c22ce7
CC
362003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37
38 * Makefile.in (libiberty_topdir): New subst.
39 (mkinstalldirs): Redefine in terms of the above.
40 * configure.in: AC_SUBST it.
41 * configure: Regenerate.
42
4ce1921a
CC
432003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
44
45 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
46 (info-subdir, install-info-subdir, clean-info-subdir)
47 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
48 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
49 Pass $(FLAGS_TO_PASS).
50
93239fdb
AO
512003-01-27 Alexandre Oliva <aoliva@redhat.com>
52
53 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
54 /`$$CC -print-multi-os-directory`.
55
74828682
DJ
562003-01-26 Daniel Jacobowitz <drow@mvista.com>
57
58 * hashtab.c (htab_create_alloc_ex): New function.
59 (hatab_set_functions_ex): New function.
60 (htab_delete, htab_expand): Support alternate allocation functions.
61
ece0e59f
CF
622003-01-24 Christopher Faylor <cgf@redhat.com>
63
64 * configure.in: Remove special pex-cygwin consideration.
65 * configure: Regenerate.
66 * pex-cygwin.c: Remove.
67 * Makefile.in: Remove pex-cygwin.[co] lines.
68
55d0e5e0
ZW
692003-01-24 Zack Weinberg <zack@codesourcery.com>
70
71 * Makefile.in (CFILES): Add pex-*.c.
72 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
73 (CONFIGURED_OFILES): Add pex-*.o.
74 (TEXIFILES): Add pexecute.txh.
75 (pexecute.o): Delete rule.
76 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
77 pex-unix.o, pex-win32.o): New rules.
78 * configure.in: Change AC_INIT argument to xmalloc.c.
79 Compute appropriate pexecute implementation and substitute it
80 as @pexecute@.
81
82 * pexecute.c: Split up into...
83 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
84 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
85 new files.
86
87 * functions.texi: Regenerate.
88 * configure: Regenerate.
89
120cdf68
JZ
902003-01-20 Josef Zlomek <zlomekj@suse.cz>
91
92 * hashtab.c (htab_expand): Fix allocation of new entries.
93
90e5b39f
CC
942003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
95
96 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
97
d7082cd7
CC
98 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
99 mkinstalldirs command.
100
eaed9290
DS
1012002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
102
103 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
104 Define for hosts with HOST_EXECUTABLE_SUFFIX.
105
ef4e4181
NC
1062002-11-24 Nick Clifton <nickc@redhat.com>
107
108 * make-relative-prefix.c (make_relative_prefix): Ensure return
109 string is empty before using strcat to construct it.
110
42766f8d
DJ
1112002-11-22 Daniel Jacobowitz <drow@mvista.com>
112
113 * Makefile.in: Add make-relative-prefix.c.
114 * make-relative-prefix.c: New file.
115 * functions.texi: Rebuilt.
116
783080ab
JJ
1172002-11-16 Jakub Jelinek <jakub@redhat.com>
118
119 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
120 used with arguments in traditional C' warnings.
121
7da64d7a
JJ
1222002-10-16 Jakub Jelinek <jakub@redhat.com>
123
124 * config.table: Use mh-s390pic for s390x too.
125
de78f58b
AJ
1262002-10-06 Andreas Jaeger <aj@suse.de>
127
128 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
129 variable and of strict-aliasing warning.
130 (grow_vect): Use char as first parameter.
131
6c5d742e
KG
1322002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
133
134 * Makefile.in (all): Fix multilib parallel build.
135
f08b7eee
JDA
1362002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
137
138 * cp-demangle.c (demangling_new): Cast 0 to enum.
139 (demangle_char): Cast return of strdup to char *.
140 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
141 (is_gnu_v3_mangled_dtor): Likewise.
142 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
143 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
144 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
145 * md5.c (md5_process_bytes): Cast results back to const void *.
146 (md5_process_block): Add cast to const md5_uint32 *.
147 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
148 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
149 unsigned short.
150 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
151 to void *.
152 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
153
8d87f295
NC
1542002-09-19 Nick Clifton <nickc@redhat.com>
155
156 * README: Update email addresses for bugs and patches.
157
6eedb9ca
MS
1582002-09-10 Mike Stump <mrs@apple.com>
159
160 * splay-tree.c (splay_tree_successor): Fix comments.
161
3fd9d606
ZW
1622002-09-11 Zack Weinberg <zack@codesourcery.com>
163
b2196e8f 164 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
165 * testsuite/Makefile.in: Adjust for test-demangle.
166 * testsuite/regress-demangle: Deleted.
167 * testsuite/test-demangle.c: New file.
168 * testsuite/demangle-expected: Change \$ to $ throughout, now that
169 this file is not being read by a shell script.
170
70c4e67a
RS
1712002-09-05 Roger Sayle <roger@eyesopen.com>
172
173 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
174
65b91091
DD
1752002-08-07 DJ Delorie <dj@redhat.com>
176
177 * regex.c (re_error_msgid): Just use a simple array of strings.
178 (re_compile_pattern): Compensate.
179 (re_comp): Likewise.
180 (re_comp): Likewise.
181 (regerror): Likewise.
182
437974a9
NB
1832002-07-29 Neil Booth <neil@daikokuya.co.uk>
184
185 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 186
28a34ec1
JM
1872002-07-10 Jason Merrill <jason@redhat.com>
188
189 * cp-demangle.c (demangle_identifier): Support extended Unicode
190 characters.
191
84326592
KG
1922002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
193
194 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 195 !defined IN_GLIBCPP_V3.
84326592 196
5d69ba1f
MM
1972002-07-01 Mark Mitchell <mark@codesourcery.com>
198
199 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
200 Set it for the "st" operator.
201 (demangle_expression): Handle expressions with types as arguments.
202
7fda878c
DR
2032002-06-30 Douglas Rupp <rupp@gnat.com>
204
205 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
206 * Makefile.in (OUTPUT_OPTION): Use.
207
112bae77
PB
2082002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
209
210 * Makefile.in (install_to_libdir): Add $(DESTDIR).
211 (install_to_tooldir): Likewise.
212
53309d5c
DR
2132002-06-17 Douglas Rupp <rupp@gnat.com>
214
215 * lbasename.c: Add 2002 to copyright.
216 (IS_DIR_SEPARATOR): Remove VMS junk.
217
045b3a49
GK
2182002-06-05 Geoffrey Keating <geoffk@redhat.com>
219
220 * hashtab.c (htab_create): New stub function for backward
221 compatibility.
222 (htab_try_create): Likewise.
223
e2500fed
GK
2242002-06-03 Geoffrey Keating <geoffk@redhat.com>
225
226 * hashtab.c (htab_create): Delete.
227 (htab_try_create): Delete.
228 (htab_create_alloc): New.
229 (htab_delete): Support user-specified memory allocation.
230 (htab_expand): Likewise.
231
9f3dbd92
RL
2322002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
233
234 * configure.in: Fix typo in the code checking for sys_errlist.
235 * configure: Regenerated.
236
e4723404
AS
2372002-05-13 Andreas Schwab <schwab@suse.de>
238
239 * config.table: Use mh-x86pic also for x86-64.
240
6706f116
AO
2412002-05-08 Alexandre Oliva <aoliva@redhat.com>
242
243 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
244 script entry, and set LD to it when configuring multilibs.
245 * configure: Rebuilt.
246
deae2ed9
MM
2472002-05-07 Mark Mitchell <mark@codesourcery.com>
248
249 * configure.in (AC_TYPE_PID_T): Use it.
250 * configure: Regenerated.
251 * getruntime.c: Include <sys/types.h>.
252 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
253
4fc4e478
RH
2542002-04-09 Richard Henderson <rth@redhat.com>
255
256 * hashtab.c (higher_prime_number): Use 7 as minimum.
257 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
258 (htab_find_slot_with_hash): Likewise.
259
bd7e6f2d
PE
2602002-04-01 Phil Edwards <pme@gcc.gnu.org>
261
262 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
263 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
264 not compile if IN_GLIBCPP_V3 defined.
265 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
266
a8f55e51
BM
2672002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
268
de78f58b 269 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
270 if it is NULL.
271
96adcacb
DD
2722002-03-27 DJ Delorie <dj@redhat.com>
273
274 * hex.c: Add documentation.
275 (_hex_value): Provide non-ASCII empty table.
276 (hex_init): Initialize the non-ASCII table.
277 * functions.texi: Regenerate.
278
2b613c6a
MM
2792002-03-27 Mark Mitchell <mark@codesourcery.com>
280
281 * dyn-string.c: Add libgcc exception to copyright notice.
282
cd862df8
L
2832002-03-26 H.J. Lu (hjl@gnu.org)
284
285 * config.table: Support --with-build-subdir.
286 * configure.in: Likewise.
287 * configure: Rebuild.
288
ed300793
SG
2892002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
290
291 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
292 seen.
293
b3dd43df
MM
2942002-03-12 Mark Mitchell <mark@codesourcery.com>
295
296 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
297 notice.
298
50c74579
DR
2992002-03-11 Douglas B Rupp <rupp@gnat.com>
300
301 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
302
957978a4
JB
3032002-03-06 Jim Blandy <jimb@redhat.com>
304
305 * splay-tree.c (splay_tree_xmalloc_allocate,
306 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
307 prototyped definitions. Mark `data' arguments as unused.
308
ccc49bed
AC
3092002-03-06 Andrew Cagney <ac131313@redhat.com>
310
311 * floatformat.c (floatformat_arm_ext_big): Delete definition.
312
48d7db63
PE
3132002-03-04 Phil Edwards <pme@gcc.gnu.org>
314
315 * configure.in: Add --enable-install-libiberty option.
316 * Makefile.in (INSTALLED_HEADERS): New variable.
317 (install_to_libdir): Possibly also copy headers.
318 * configure: Regenerated.
319
af18e951
NB
3202002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
321
322 * xmalloc.c (xmalloc_fail): Clarify error message further.
323
d8d7c3c3
NB
3242002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
325
326 * xmalloc.c (xmalloc_fail): Clarify error message.
327
00c2f96f
JB
3282002-02-22 Jim Blandy <jimb@redhat.com>
329
330 * splay-tree.c (splay_tree_xmalloc_allocate,
331 splay_tree_xmalloc_deallocate): New functions.
332 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
333 above functions and a dummy data pointer.
334 (splay_tree_new_with_allocator): New function.
335 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
336 splay_tree_remove): Use the splay tree's allocation and
337 deallocation functions.
338
b1c1a22f
SS
3392002-02-19 Scott Snyder <snyder@fnal.gov>
340
341 * testsuite/demangle-expected: Add test case for infinite loop in
342 demangler.
343 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
344 if do_type() doesn't make any progress --- prevents an infinite
345 loop.
346
336669e7
CW
3472002-02-18 Carlo Wood <carlo@gnu.org>
348
349 PR c++/5390
350 * cplus-dem.c (demangle_integral_value): Accept multi-digit
351 numbers that do not start with an underscore; This is needed
352 for integer template parameters. This doesn't break anything
353 because multi-digit numbers are never followed by a digit.
354 * testsuite/demangle-expected: Corrected all mangled test
355 cases with multi-digit template parameters: g++ 2.95.x does
356 not generate underscores around these parameters.
357
c13db5d1
JM
3582002-02-05 Jason Merrill <jason@redhat.com>
359
360 * cplus-dem.c (flags): Add DMGL_VERBOSE
361 (cplus_demangle_v3_p): Remove.
362 (demangle_it): Add DMGL_TYPES to passed flags.
363 * cp-demangle.c (cplus_demangle_v3_all): Remove.
364 (cplus_demangle_v3_type): Remove.
365 (cplus_demangle_v3): Add options parm.
366
d74697b8
L
3672002-02-02 H.J. Lu (hjl@gnu.org)
368
369 * cp-demangle.c (cp_demangle_type): Do not protect with
370 IN_LIBGCC2.
371 (cplus_demangle_v3_all): New.
372 (cplus_demangle_v3): Call cplus_demangle_v3_all.
373 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
374
375 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
376 Initialized to cplus_demangle_v3.
377 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
378 of cplus_demangle_v3.
379 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
380 command line symbol.
381
382 * testsuite/regress-demangle: Pass the mangled name at the
383 command line.
384
3a441e38
L
3852002-02-01 H.J. Lu <hjl@gnu.org>
386
387 * cp-demangle.c (cp_demangle_type): Call demangling_new with
388 DMGL_GNU_V3.
389
6d747e63
PE
3902002-01-31 Phil Edwards <pme@gcc.gnu.org>
391
392 * cp-demangle.c: Revert yesterday's change.
393
46af757b
AM
3942002-01-31 Adam Megacz <adam@xwt.org>
395
396 * gcc/libiberty/configure.in: Treat mingw the same as cywin
397 wrt HAVE_SYS_ERRLIST.
398
46ab74b1
PE
3992002-01-30 Phil Edwards <pme@gcc.gnu.org>
400
401 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
402 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
403 cp_demangle_type.
404 * testsuite/demangle-expected: New gnu-v3 test.
405
e64d0626
MV
4062002-01-22 Momchil Velikov <velco@fadata.bg>
407
408 * configure.in (variable detection): Use arrays of unspecified
409 size instead of plain integers.
410
9ce3f7e5
DD
4112002-01-18 DJ Delorie <dj@redhat.com>
412
413 * Makefile.in (TESTLIB): New. This library is for future
414 testsuites.
415 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
416 break down by letter.
417 (REQUIRED_OFILES): List long-to-compile files first.
418 (maint-deps): New, target for updating dependencies.
419 (dependencies): Update.
420 * maint-tool: Add dependency-generating option.
421 * configure.in: Check for _doprnt even if we're not providing it.
422 * configure: Regenerate.
423
424 * _doprnt.c: Modifications to allow compiling on any platform.
425 * copysign.c: Likewise.
426 * putenv.c: Likewise.
427 * setenv.c: Likewise.
428 * vsprintf.c: Likewise.
429
0e83ceb1
DR
4302002-01-15 Douglas B Rupp <rupp@gnat.com>
431
432 * mkstemps.c (mkstemps): On VMS, open temp file with option
433 that causes it to be deleted when closed.
434
adddf5bf
KG
4352002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
436
5e65297b
KG
437 * cp-demangle.c (long_options): Const-ify.
438 * cplus-dem.c (long_options): Likewise.
439
adddf5bf
KG
440 * cplus-dem.c (mystrstr): Delete. All callers changed to use
441 strstr instead.
442
a4219437
IR
4432001-12-31 Ira Ruben <ira@apple.com>
444
445 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
446 * configure: Regenerated.
af328d8d
DR
447
4482001-12-24 Douglas B. Rupp <rupp@gnat.com>
449
450 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
451 * configure: Regenerated.
a4219437 452
63de15a4
CR
4532001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
454
455 PR other/2719
456 * cplus-dem.c (consume_count): Treat negative count as an error.
457 * testsuite/demangle-expected: Added testcase.
458
ee262b6f
DR
459Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
460
461 * configure.in: Hardcode that vfork works on VMS host.
462 * configure: Regenerated.
463
d06ba3c7
RH
4642001-12-06 Richard Henderson <rth@redhat.com>
465
466 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
467 (cplus_demangle): Support no_demangling.
468
e490616e
ZW
4692001-11-27 Zack Weinberg <zack@codesourcery.com>
470
471 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
472 in libiberty context. Fix typo in leading comment.
473 * configure.in: Fix various AC_DEFINEs so autoheader works.
474 If any of vprintf, vsprintf, vfprintf is missing from libc,
475 then AC_REPLACE_FUNCS(_doprnt).
476
97e620cf 4772001-11-26 DJ Delorie <dj@redhat.com>
e490616e 478 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
479
480 * Makefile.in (stamp-h): Depend on Makefile for proper
481 serialization.
482 (*-subdir): Depend on config.h for proper serialization.
483
c3bb7df0
DD
4842001-11-26 DJ Delorie <dj@redhat.com>
485
486 * configure.in: Check for alloca.h (for regex.c and putenv.c).
487 * configure: Regenerate.
488 * config.h: Add HAVE_ALLOCA_H.
489
23850d35
KG
4902001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
491
2c47b56b
KG
492 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
493 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
494 is available.
23850d35 495
7ddfb651
JL
496Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
497
d3982b71
JL
498 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
499 * configure.in (HAVE_UINTPTR_T): Test for system defining
500 uintptr_t and define HAVE_UINTPTR_T appropriately.
501 * regex.c (uintptr_t): Do not provide a definition if the
502 system provided one.
503
7ddfb651
JL
504 * regex.c (PREFIX): Provide an alternate definition for
505 non-ANSI/ISO compilers.
506 (ARG_PREFIX): Likewise.
507
2e683037
JM
5082001-11-12 Jim Meyering <meyering@lucent.com>
509
510 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
511 this code would end up calling gettext even in packages built
512 with --disable-nls.
513 * getopt.c (_): Likewise.
514 * regex.c (_): Likewise.
515
f749bd83
AM
5162001-11-03 Alan Modra <amodra@bigpond.net.au>
517
518 * configure.in: Cope with missing makeinfo.
55a10d7c 519 * configure: Regenerate.
f749bd83 520
26ad2982
KG
5212001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
522
e5969ba6
KG
523 * hex.c (hex_init): Provide empty stub.
524
26ad2982
KG
525 * hex.c (hex_init): Delete.
526 (_hex_value): Const-ify and initialize at compile-time.
527
afb649d5
L
5282001-10-19 H.J. Lu <hjl@gnu.org>
529
530 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
531 necessary.
532
5bed56d9
DD
5332001-10-17 DJ Delorie <dj@redhat.com>
534
535 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
536 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 537 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
538 Improve manual formatting.
539 * functions.texi: Regenerate.
540
aac04c15
DD
5412001-10-15 DJ Delorie <dj@redhat.com>
542
543 * Makefile.in (TEXIFILES): Add fnmatch.txh.
544 (maint-undoc): New.
545 maint-tool: Add "undoc" tool.
546 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
547 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
548 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
549 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
550 documentation.
551 * fnmatch.txh: New.
552 * functions.texi: Regenerate.
fae8182a 553
0e4e9e8f
JM
5542001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
555
556 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
557 * strtod.c: Use "ISO C" instead of "ANSI C".
558 * functions.texi: Regenerate.
559
7f8fa05d
JM
5602001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
561
562 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
563 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
564 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
565 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
566 spelling. Give names to function arguments in documentation. Use
567 (void) prototypes in documentation.
568 * functions.texi: Regenerate.
569
0be6abca
KG
5702001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
571
572 * argv.c (buildargv, tests, main): Const-ify.
573 * cp-demangle.c (operator_code): Likewise.
574 * cplus-dem.c (optable, libiberty_demanglers,
575 cplus_demangle_set_style, cplus_demangle_name_to_style,
576 print_demangler_list): Likewise.
577 * hashtab.c (higher_prime_number): Likewise.
578 * strcasecmp.c (charmap): Likewise.
579 * strerror.c (error_info, strerror, main): Likewise.
580 * strncasecmp.c (charmap): Likewise.
581 * strsignal.c (signal_info): Likewise.
582
0e30ffc5
DD
5832001-09-29 DJ Delorie <dj@redhat.com>
584
585 * configure: Regenerate.
586
576fb787
KG
5872001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
588
589 * concat.c: Include stdlib.h.
590
e922f978
EZ
5912001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
592
593 * libiberty.texi: (Top level): Add syncodeindex pg. Add
594 @dircategory and @direntry directives. Add @finalout.
595 (many nodes): Lose the next,prev,up pointers on the @nide line.
596 (Using, Supplemental Functions, Replacement Functions): Fix
597 markup.
598 (Functions): Move around, to allow makeinfo to build the manual
599 without next,prev,up pointers in thye node lines.
600 (Licenses): Fix typos.
601
602 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
603 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
604 * functions.texi: Regenerate.
605
606 * copying-lib.texi: Lose the next,prev,up pointers on the @node
607 line.
608
ae9092da
DD
6092001-09-27 DJ Delorie <dj@redhat.com>
610
611 * configure.in: Don't use in-tree texinfo, because libiberty must
612 be built before it. Check for makeinfo version 4 or higher.
613 * functions.texi: Regenerate.
fae8182a 614
aaa5f039
DD
6152001-09-20 DJ Delorie <dj@redhat.com>
616 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 617
aaa5f039
DD
618 * configure.in (MAKEINFO, PERL): Detect these.
619 (--enable-maintainer-mode): Add.
620 * configure: Regenerate.
621 * Makefile.in (MAKEINFO, PERL): Define.
622 (libiberty.info, libiberty.dvi, libiberty.html): New.
623 (CFILES): Add bsearch.c.
624 (CONFIGURED_OFILES): New, list of objects configure might add.
625 (maint-missing, maint-buildall): New, for maintainers only.
626 (clean, mostlyclean): Add info/dvi/html files.
627 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
628 * gather-docs: New, for maintainers.
629 * maint-tool: New, for maintainers.
630 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
631 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
632 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
633 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
634 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
635 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
636 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
637 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
638 documentation.
fae8182a 639
c1766881
KG
6402001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
641
642 * concat.c (reconcat): Fix for traditional C.
643
ad43d46f
KG
6442001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
645
646 * concat.c (reconcat): New function.
647
c1d49704
KG
6482001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
649
c793eea7
KG
650 * concat.c (vconcat_length, vconcat_copy, concat_length,
651 concat_copy, concat_copy2): New functions.
652 (concat): Use vconcat_length/vconcat_copy.
653
c1d49704
KG
654 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
655 Define.
656
7a98d9b2
KG
6572001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
658
659 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
660 VA_FIXEDARG & VA_CLOSE.
fae8182a 661
7a98d9b2
KG
662 * vasprintf.c: Check HAVE_STRING_H when including string.h.
663 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
664 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
665
e2dff3f2
KG
6662001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
667
668 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
669
d0708dc1
UD
6702001-08-23 Ulrich Drepper <drepper@redhat.com>
671
672 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
673
6742001-08-23 Ulrich Drepper <drepper@redhat.com>
675
676 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
677 instead of mbrtowc.
678 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
679 wcslen, and __wcscoll instead of wcscoll.
680
ffb9435b
MK
6812001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
682
de78f58b
AJ
683 * fibheap.c (fibheap_init, fibnode_init): Remove.
684 (fibheap_new, fibnode_new): Use xcalloc to allocate and
685 initialize memory.
686 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 687
f379eac3
RH
6882001-08-21 Richard Henderson <rth@redhat.com>
689
690 * Makefile.in (fibheap.o): Depend on config.h.
691 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
692 functions for inlining.
693
b1c45ae4
CF
694Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
695
696 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
697 hosting on cygwin.
698 * configure: Regenerate.
699
0310e5ac
AC
7002001-08-20 Andrew Cagney <ac131313@redhat.com>
701
702 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
703 HARRIS_FLOAT_FORMAT.
704 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
705 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
706 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
707 (floatformat_m88110_harris_ext): New float formats.
708
8c23e0a4
DB
7092001-08-20 Daniel Berlin <dan@cgsoftware.com>
710
711 * fibheap.c: New file. Fibonacci heap.
712
713 * Makefile.in (CFILES): Add fibheap.c.
714 (REQUIRED_OFILES): Add fibheap.o.
715 (fibheap.o): Add dependencies for fibheap.o.
716
91625004
CF
7172001-08-17 Christopher Faylor <cgf@cygnus.com>
718
719 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
720 * configure: Regenerate.
721
9e0ba685
RH
7222001-08-16 Richard Henderson <rth@redhat.com>
723
724 * hashtab.c (htab_hash_string): New.
725
d80dedbe
AC
7262001-08-13 Andrew Cagney <ac131313@redhat.com>
727
728 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
729 name.
730
ccea0d85
IH
7312001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
732
733 * regex.c (wcs_regex_compile): Use appropriate string
734 to compare with collating element.
735 Fix the padding for the alignment.
736
b0e9bc8c 7372001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
738
739 * lbasename.c (lbasename): Change function definition to return a
740 const char pointer.
741
056400f1
JM
7422001-08-07 Jason Merrill <jason_merrill@redhat.com>
743
744 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
745 for".
746
4e627c41
RH
7472001-08-03 Richard Henderson <rth@redhat.com>
748
749 * Makefile.in (concat.o): Depend on config.h.
750
b6a2f884
AJ
7512001-07-30 Andreas Jaeger <aj@suse.de>
752
753 * concat.c: Include "config.h".
754
c4b9cfe0
AJ
7552001-07-30 Andreas Jaeger <aj@suse.de>
756
757 * regex.c: Declare wcs functions only if compiling with
758 MBS_SUPPORT.
759 Don't use #elif for traditional C.
760
7612001-07-23 Ulrich Drepper <drepper@redhat.com>
762
763 * regex.c: Revamp memory allocation for WCHAR functions to
764 not use too much stack.
765
7662001-07-30 Andreas Jaeger <aj@suse.de>
767
768 * regex.c: Declare wcs functions only if compiling with
769 MBS_SUPPORT.
770 Don't use #elif for traditional C.
771
2cf50fd3
DJ
7722001-07-25 Daniel Jacobowitz <drow@mvista.com>
773
774 * Makefile.in (regex.o): Add dependency on config.h.
775
27ffc806
DD
7762001-07-18 Andreas Schwab <schwab@suse.de>
777
778 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
779 underscore character.
780
7812001-07-18 Ulrich Drepper <drepper@redhat.com>
782
783 * regex.c: Limit string length printed in debug messages to 100
784 chars.
785
7862001-07-18 Andreas Jaeger <aj@suse.de>
787
788 * regex.c: Place under LGPL version 2.1.
789
dd771632
JJ
7902001-07-10 Jeff Johnston <jjohnstn@redhat.com>
791
792 * Makefile.in: Add support for regex code.
793 * regex.c: New file.
794
29650b2b
MK
7952001-07-05 Mark Klein <mklein@dis.com>
796
797 * Makefile.in: Add ffs.c dependency.
798 * configure.in: Add ffs.c.
799 * ffs.c: New file.
800
c8b28221
RH
8012001-06-18 Richard Henderson <rth@redhat.com>
802
803 * concat.c: Include <sys/types.h>.
804
473c2d0b
LR
8052001-06-11 Loren J. Rittle <ljrittle@acm.org>
806
a4c03da2 807 bootstrap/3106
473c2d0b
LR
808 * strerror.c (sys_nerr): Hide the OS header version.
809 * strsignal.c (sys_nsig): Likewise.
810
0bdcca68
RH
8112001-06-10 Richard Henderson <rth@redhat.com>
812
813 * concat.c: Include string.h. Fix int vs size_t usage.
814 Simplify the iteration loops. Use memcpy.
815
6de133d3
MK
8162001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
817
818 * partition.c: Fix misspelling of `implementation'.
819
8a153288
TS
8202001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
821
822 * md5.c (md5_init_ctx): Declare constants as unsigned.
823 (md5_process_block): Likewise.
824
641b2721
ZW
8252001-05-07 Zack Weinberg <zackw@stanford.edu>
826
827 * cp-demangle.c (demangle_v3_with_details,
828 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
829 function definition.
830 * ternary.c: Use K+R style function definitions. Use PTR, not
831 void *. Make arguments constant where possible.
832
5cdba4ff
MM
8332001-05-07 Mark Mitchell <mark@codesourcery.com>
834
835 * splay-tree.h (splay_tree_max): New function.
836 (splay_tree_min): Likewise.
837
9dab060e
DB
8382001-04-15 Daniel Berlin <dan@cgsoftware.com>
839
840 * ternary.c: New file - Ternary search tree implementation.
841
842 * Makefile.in: Add ternary.o, and ternary.c dependencies.
843
d02af173
ZW
8442001-04-03 Zack Weinberg <zackw@stanford.edu>
845
846 * make-temp-file.c (try): Inline.
847
94b68558
RH
8482001-02-28 Richard Henderson <rth@redhat.com>
849
850 * Makefile.in (make-temp-file.o): Depend on config.h.
851
27f66c0b
KG
8522001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
853
854 * memchr.c (memchr): Adjust condition to avoid infinite loop.
855
f1a0345c
JJ
8562001-03-23 Jakub Jelinek <jakub@redhat.com>
857
858 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
859 `_' not followed by a digit is invalid.
860
a519fba6
JB
8612001-03-22 Jim Blandy <jimb@redhat.com>
862
863 * cp-demangle.c (string_list_delete): Use dyn_string_delete
864 instead of free, to free the contents as well as the string
865 structure.
866
49ee944b
ZW
8672001-03-21 Zack Weinberg <zackw@stanford.edu>
868
869 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
870 Don't default P_tmpdir to anything. Try /var/tmp before
871 /usr/tmp.
872
33437dc7
ZW
8732001-03-20 Zack Weinberg <zackw@stanford.edu>
874
875 * choose-temp.c: Split off make_temp_file, and the code
876 duplicated between it and choose_temp_base, into...
877 * make-temp-file.c: ... here; new file.
878
879 * Makefile.in (CFILES): Add make-temp-file.c.
880 (REQUIRED_OFILES): Add make-temp-file.o.
881
7dce2eff
JB
8822001-03-20 Jim Blandy <jimb@redhat.com>
883
884 * cp-demangle.c (struct demangling_def): New fields:
885 is_constructor and is_destructor.
886 (demangling_new): Initialize them.
887 (demangle_ctor_dtor_name): Set them, if we detect a constructor
888 or destructor.
889 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
890 is_gnu_v3_mangled_dtor): New functions.
891
e03a61f1
JM
8922001-03-20 Jason Merrill <jason@redhat.com>
893
894 * cplus-dem.c (main): Skip initial $.
895
8860ddab
MM
8962001-03-15 Michael Meissner <meissner@redhat.com>
897
898 * hashtab.c (higher_prime_number): Silence warning that 4294967291
899 might be a signed integer under pre-ISO C systems.
900
2b757d51
NB
9012001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
902 John David Anglin <dave@hiauly1.hia.nrc.ca>
903
904 * libiberty/lbasename.c: New file.
905 * libiberty/Makefile.in: Update for lbasename.
906
1f50aafb
ZW
9072001-03-06 Zack Weinberg <zackw@stanford.edu>
908
909 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
910 * configure.in: Replace all alloca logic with a simple use of
911 the above new macro.
912 * config.table: Kill *-*-beos* entry.
913 * config/mh-beos: Delete.
914 * configure, config.in: Regenerate.
915
916 * Makefile.in (ALLOCA, HFILES): Kill.
917 (REQUIRED_OFILES): Add alloca.o.
918 (alloca.o): Depend on libiberty.h.
919 (argv.o): Don't depend on alloca-conf.h.
920 * alloca-conf.h: Delete.
921 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
922 blocks. Provide the C alloca unconditionally. Use PTR where
923 appropriate. Make i00afunc static.
924 * argv.c: Don't include alloca-conf.h.
925
d9fd5aae
JDA
9262001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
927
928 * cplus-dem.c (main): Cast enum style to int.
929
4031ed65
LR
9302001-02-16 Loren J. Rittle <ljrittle@acm.org>
931
932 * cplus-dem.c (main): Initialize style.
933
2ca46e8a
PE
9342001-02-02 Phil Edwards <pme@sources.redhat.com>
935
936 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
937
3b60dd8e
BM
9382001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
939
940 Add support for Java demangling under the v3 ABI:
941 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
942 (struct demangling_def): Add `style' field.
943 (demangling_new): New parameter `style'. Set it in demangling_t.
944 (demangle_prefix): Use NAMESPACE_SEPARATOR.
945 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
946 (cp_demangle): New parameter `style'. Pass it to demangling_new().
947 (main): Call cp_demangle with extra parameter.
948 (java_demangle_v3): New function.
949 (java_builtin_type_names): New. Table of primitive type names used
950 for Java demangling.
951 (demangle_builtin_type): Look up in java_builtin_type_names if doing
952 Java output.
1f50aafb 953 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
954 demangling.
955 (long_options): Remove obsolete `java' option.
956 (main): Remove explicit handling of `java' option. Instead, pass style
957 parameter in cplus_demangle flags as gdb does.
958 * testsuite/demangle.expected: Add some Java test cases.
959
584932e9
DD
9602000-12-29 DJ Delorie <dj@redhat.com>
961
962 * fnmatch.c: Make the note about the origins of this file more
963 accurate, at least until we can sync with glibc.
964 * getopt.c: Ditto.
965 * getopt1.c: Ditto.
966 * md5.c: Ditto.
967 * obstack.c: Ditto.
968
dac45916
MS
9692000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
970
971 * bsearch.c: New file.
972 * configure.in (funcs): Add bsearch.
973 (AC_CHECK_FUNCS): Likewise.
974 * configure, config.in: Regenerate.
975
a8e4a997
MS
9762000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
977
978 * safe-ctype.c: #include "ansidecl.h".
979 * strtod.c: Likewise.
980
75444da7
MS
9812000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
982
983 * strtoul.c: Include safe-ctype.h, not ctype.h.
984
f6bbde28
ZW
9852000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
986
987 * safe-ctype.c: New file.
988 * Makefile.in (CFILES): Add safe-ctype.c.
989 (REQUIRED_OFILES): Add safe-ctype.o.
990
991 * argv.c: Define ISBLANK and use it, not isspace.
992 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
993 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
994 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
995 before calling TOLOWER(c)/TOUPPER(c).
996
6c1ce62b 9972000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
998
999 * Makefile.in (distclean): When cleaning, remove testsuite.
1000
b5d1497d
JM
10012000-12-05 Jason Merrill <jason@redhat.com>
1002
1003 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1004 name before allocating the dyn_string.
1005
c6e13630
JM
10062000-12-04 Jason Merrill <jason@redhat.com>
1007
1008 * cp-demangle.c: s/new_abi/v3/.
1009 * cplus-dem.c: Likewise.
1010 (current_demangling_style): Now auto_demangling.
1011 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 1012 (main): Use standard symbol chars for auto_demangling.
c6e13630 1013
a4c9b97e
MM
10142000-11-26 Mark Mitchell <mark@codesourcery.com>
1015
1016 * hashtab.c (higher_prime_number): Use a table, rather than a
1017 seive, to find the next prime.
1018
3b3bd9a7
L
10192000-11-22 H.J. Lu <hjl@gnu.org>
1020
1021 * cplus-dem.c (main): Handle gnat_demangling.
1022
d1209685
ZW
10232000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1024
1025 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1026 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1027 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1028 argument form of AC_DEFINE in dummy definitions block. Use
1029 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1030 in dummy block. Preload cache variables instead of bypassing
1031 tests, where possible.
1032 * acconfig.h: Removed.
1033
1034 * xmalloc.c (xmalloc_failed): New function, does error
1035 reporting on failed allocation.
1036 (xmalloc, xcalloc, xrealloc): Use it.
1037
cf183ac2
HPN
10382000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1039
1040 * cplus-dem.c (cplus_demangle): Fix formatting.
1041 (grow_vect): Ditto.
1042 (ada_demangle): Ditto.
1043 (internal_cplus_demangle): Ditto.
1044 (mop_up): Ditto.
1045
10462000-11-21 H.J. Lu <hjl@gnu.org>
1047
1048 * cplus-dem.c (main): Handle java_demangling.
1049
8bcc782c
KG
10502000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1051
1052 * cplus-dem.c (grow_vect): Prototype.
1053 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1054
29120f44
HPN
10552000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1056
1057 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1058 parameter `option'.
1059
0437a5a8
KB
10602000-11-15 Kenneth Block <kenneth.block@compaq.com>
1061
9e038f71 1062 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
1063 be used in GCC.
1064
eab0c1ab 10652000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 1066
29120f44 1067 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
1068 list.
1069
d50d20ec
HPN
10702000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1071
1072 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
1073 xcalloc depending on htab->return_allocation_failure. Return zero
1074 if calloc fails.
d50d20ec
HPN
1075 (htab_create): Update comment to cover memory allocation.
1076 (htab_try_create): New.
1077 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 1078 Update comment to cover this.
d50d20ec 1079
35e9340f
HPN
10802000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1081
1082 * hashtab.c: Change void * to PTR where necessary.
1083 (htab_create, htab_expand): Correct formatting of comment before
1084 function.
1085
ea343d1a 10862000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
1087
1088 * cp-demangle.c (string_list_def): Add caret_position and comments.
1089 (result_caret_pos): New macro.
1090 (result_append_string): Rename to...
1091 (result_add_string): ... this, and insert at caret position.
d1209685 1092 Rename throughout.
0870bfd6
AS
1093 (result_append): Rename to...
1094 (result_add): ... this, and insert at caret position. Rename
d1209685 1095 throughout.
0870bfd6
AS
1096 (result_append_char): Rename to...
1097 (result_add_char): ... this, and insert at caret position. Rename
d1209685 1098 throughout.
0870bfd6
AS
1099 (result_append_space): Remove.
1100 (string_list_new): Initialize caret position.
1101 (result_add_separated_char): Use caret position.
1102 (result_get_caret): New funtion.
1103 (result_set_caret): Likewise.
1104 (result_shift_caret): Likewise.
1105 (result_previous_char_is_space): Likewise.
1106 (substitution_start): Use caret position.
1107 (substitution_add): Likewise.
1108 (demangling_new): Initialize caret position.
1109 (demangle_encoding): Use caret position.
d1209685 1110 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1111 (demangle_type_ptr): Use switch statement. Handle pointers to
1112 arrays. Don't use result_append_space. Use caret position.
1113 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1114 call to demangle_array_type.
1115 (demangle_array_type): Add parameter to handle pointers to arrays.
1116
f15b9af9
MM
11172000-10-01 Mark Mitchell <mark@codesourcery.com>
1118
1119 * splay-tree.c (splay_tree_insert): Fix formatting.
1120
8f17b5c5
MM
11212000-09-16 Mark Mitchell <mark@codesourcery.com>
1122
1123 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1124
4eaa189a
MS
11252000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1126
1127 * splay-tree.c: #include <stdio.h>.
1128
29791078
HPN
11292000-09-14 Hans-Peter Nilsson <hp@axis.com>
1130
1131 * testsuite/demangle-expected: Add two tests for anonymous
1132 namespaces.
1133 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1134
2c9f4db7
MM
11352000-09-10 Mark Mitchell <mark@codesourcery.com>
1136
1137 * splay-tree.c (splay_tree_predecessor): New function.
1138 (splay_tree_successor): Likewise.
1139
bb22da4b
HPN
11402000-09-10 Hans-Peter Nilsson <hp@axis.com>
1141
1142 * testsuite/demangle-expected: Add four tests for type_info
1143 mangling.
bb22da4b
HPN
1144 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1145 for a non-template non-qualified type_info function or node.
1146
759e8187
AS
11472000-09-08 Alex Samuel <samuel@codesourcery.com>
1148
1149 * cp-demangle.c: Fix copyright banner.
1150
2ecd81ef
MS
11512000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1152
1153 * md5.c: #include "ansidecl.h".
1154
d93998ec
AS
11552000-09-06 Alex Samuel <samuel@codesourcery.com>
1156
1157 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1158 (demangle_type): Handle substitution candidates correctly in the
1159 face of special substitutions.
1160
1056d228
AS
11612000-09-05 Alex Samuel <samuel@codesourcery.com>
1162
1163 * cp-demangle.c (demangle_encoding): Rename variable.
1164 (demangle_name): Rename parameter. Handle return type
1165 suppression.
1166 (demangle_nested_name): Rename parameter.
1167 (demangle_prefix): Likewise. Change return type suppression.
1168 (demangle_unqualified_name): Add parameter. Flag constructors and
1169 conversion operators.
1170 (demangle_special_name): Fix comment.
1171 (demangle_type): Rename variable.
1172 (demangle_bare_function_type): Check for missing return type and
d1209685 1173 parameter.
1056d228
AS
1174 (demangle_class_enum_type): Rename parameter.
1175 (demangle_discriminator): Fix misspelling in comment.
1176
2f31ed7e
DD
11772000-08-31 DJ Delorie <dj@redhat.com>
1178
1179 * configure.in (Cygwin): special case cygwin only when we're
1180 building cygwin, not when we're hosting cygwin.
1181
02bcb9c6
AS
11822000-09-04 Alex Samuel <samuel@codesourcery.com>
1183
1184 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1185 <expression>.
1186
aee749cf
AS
11872000-09-04 Alex Samuel <samuel@codesourcery.com>
1188
1189 * cp-demangle.c (demangle_type_ptr): Increment position past
1190 pointer and reference characters.
1191
92a16bbe
AS
11922000-09-04 Alex Samuel <samuel@codesourcery.com>
1193
1194 * cp-demangle.c (demangle_nv_offset): New function.
1195 (demangle_v_offset): Likewise.
1196 (demangle_call_offset): Likewise.
1197 (demangle_special_name): Update thunk demangling to comply with
1198 ABI changes.
d1209685 1199
31e0ab1f
AS
12002000-09-03 Alex Samuel <samuel@codesourcery.com>
1201
1202 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1203 (substitution_def): Remove template_parm_number.
1204 (NOT_TEMPLATE_PARM): Remove.
1205 (result_insert_string): New macro.
1206 (result_insert): Likewise.
1207 (result_insert_char): Likewise.
1208 (substitution_add): Remove last parameter. Don't store template
d1209685 1209 parm number.
31e0ab1f
AS
1210 (BFT_NO_RETURN_TYPE): Define as NULL.
1211 (demangle_encoding): Adjust call to demangle_bare_function_type.
1212 (demangle_name): Adjust substitution. Adjust call to
d1209685 1213 substitution_add.
31e0ab1f
AS
1214 (demangle_prefix): Adjust call to substitution_add.
1215 (demangle_identifier): Handle anonymous namespaces.
1216 (demangle_operator_name): Change demangling of vendor-extended
1217 operator to match ABI changes.
1218 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1219 substitutions here.
31e0ab1f
AS
1220 (demangle_type): Adjust calls to demangle_template_param,
1221 substitution_add, and demangle_type_ptr. Fix substitution of
1222 templated types.
1223 (demangle_function_type): Change parameter to a pointer.
1224 (demangle_bare_function_type): Likewise. Adjust insertion point.
1225 (demangle_template_param): Remove last parameter.
1226 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1227 demangle_template_param.
31e0ab1f
AS
1228 (is_mangled_char): Accept `$' and `.'.
1229 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1230 * dyn-string.c (dyn_string_insert_char): New function.
1231
ccbc3eb7
HPN
12322000-08-31 Hans-Peter Nilsson <hp@axis.com>
1233
1234 * testsuite/demangle-expected: Add nine tests for
1235 underscore-after-number followed by five tests for name-signature
1236 delimiter.
1237
53dce582
RH
12382000-08-28 Richard Henderson <rth@cygnus.com>
1239
1240 * Makefile.in (md5.o): Depend on config.h.
1241
881c6935
JM
12422000-08-28 Jason Merrill <jason@redhat.com>
1243
1244 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1245 (CFILES): Add md5.c.
1246 * md5.c: New file.
1247
a440fd19
AS
12482000-08-27 Alex Samuel <samuel@codesourcery.com>
1249
1250 * cp-demangle.c (demangle_name): Initialize template_p in local
1251 name case. Don't re-add substitutions as candidates.
1252 (demangle_nested_name): Use <unqualified-name>.
1253 (demangle_prefix): Likewise. Don't add template names as
1254 substitution candidates twice, or re-add a substitution or the
1255 last prefix component.
1256 (demangle_local_name): Adjust output format.
1257
d01ce591
AS
12582000-08-25 Alex Samuel <samuel@codesourcery.com>
1259
1260 * cp-demangle.c (result_add_separated_char): Change parameter to
1261 int.
1262 (substitution_add): Don't check for duplicates. Check if
1263 previously allocated size is zero.
1264 (demangle_name): Remove duplicate check for std substitution.
1265 Clear template flag appropriately.
1266 (demangle_prefix): Remove argument to demangle_substitution.
1267 Don't check that template flag is already set.
1268 (demangle_operator_name): Add pt operator.
1269 (demangle_type): Don't treat r as built-in type. Remove argument
1270 to demangle_substitution. Fix substitution candidate mechanics.
1271 Handle <template-template-parm>s. Improve comments.
d1209685 1272 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1273 (demangle_substitution): Remove parameter.
1274 (print_usage): Remove extra fprintf option.
1275
2f59c8eb
GM
12762000-08-24 Greg McGary <greg@mcgary.org>
1277
1278 * libiberty/random.c (end_ptr): Revert previous change.
1279
2f26c11d
GM
12802000-08-24 Greg McGary <greg@mcgary.org>
1281
1282 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1283 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1284 * libiberty/random.c (end_ptr): Likewise.
1285
e282c9c9
AS
12862000-08-23 Alex Samuel <samuel@codesourcery.com>
1287
1288 * cp-demangle.c (result_close_template_list): Remove function.
1289 (result_add_separated_char): New function.
1290 (result_open_template_list): New macro.
1291 (result_close_template_list): Likewise.
1292 (demangle_prefix): Don't set template_p if the
1293 prefix ends with a ctor name.
1294 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1295 (demangle_type): Check for template args after substitution.
1296 (demangle_template_args): Use result_open_template_list.
d1209685 1297
c9b6494a
ZW
12982000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1299
1300 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1301
d1209685 13022000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1303
1304 * config/mh-openedition.h: Added -DLE370 definition.
1305
0aab2795
ME
13062000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1307
1308 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1309 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1310 Cast program to 'char *' in errmsg_arg assignment.
1311 (PWAIT_ERROR): Define.
1312 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1313 to DJGPP's WIF* macros.
1314
c2f275e4
RB
13152000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1316 Jeff Law <law@cygnus.com>
1317
73aa9564
RB
1318 * getcwd.c: Include string.h, stdlib.h for prototypes
1319
c2f275e4 1320 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1321 * rename.c: Include config.h, unistd.h
1322 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1323
ccbc3eb7
HPN
13242000-07-24 Hans-Peter Nilsson <hp@axis.com>
1325
1326 * cplus-dem.c (work_stuff_copy_to_from): New.
1327 (delete_non_B_K_work_stuff): New.
1328 (delete_work_stuff): New.
1329 (mop_up): Break out work_stuff partly destruction to
1330 delete_non_B_K_work_stuff.
1331 (iterate_demangle_function): New.
1332 (demangle_prefix): Call iterate_demangle_function instead of
1333 demangle_function_name. Leave handling of name-signature
1334 __-delimiters to iterate_demangle_function.
1335 (demangle_integral_value): Strip an optional
1336 following underscore cautiously. Handle negative numbers.
1337
3388651c
DB
13382000-07-24 Daniel Berlin <dberlin@redhat.com>
1339
d1209685 1340 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1341 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1342
0fac482e
AS
13432000-07-21 Alex Samuel <samuel@codesourcery.com>
1344
1345 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1346 allocating ctor mangling.
1347 (demangle_array_type): Handle empty and non-constant array length.
1348
8502a100 13492000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1350 Jeff Law <law@cygnus.com>
1351
c6451ce1
MS
1352 * configure.in (AC_CHECK_HEADERS): Add time.h.
1353 (AC_HEADER_TIME): Add check.
1354 * configure, config.in: Regenerate.
1355 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1356
cd447360
MS
1357 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1358 * configure, config.in: Regenerate.
1359 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1360 * strtol.c, strtoul.c: #include "config.h". Portably #include
1361 <limits.h> and/or <sys/param.h>.
1362 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1363
3b58c099
MS
1364 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1365 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1366 * configure, config.in: Regenerate.
1367 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1368
8502a100
MS
1369 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1370
da0c7743
MS
13712000-07-21 Mike Stump <mrs@wrs.com>
1372
1373 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1374 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1375
838f8562
KG
13762000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1377
1378 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1379
1380 * setenv.c (setenv): Initialize variable `ep'.
1381
1382 * sigsetmask.c (abort): Prototype.
1383
1384 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1385 __STDC__ for stdarg.h include.
1386 (int_vasprintf): Prototype.
1387 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1388 definition. Cast `global_total_width' in comparison.
1389 (main): Prototype. Return a value.
1390
1391 * vfork.c (fork): Prototype.
1392
1393 * xexit.c: Include config.h.
1394
e9958132
JM
13952000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1396
1397 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1398 and print it with %u.
1399
39a6492f
HPN
14002000-07-17 Hans-Peter Nilsson <hp@axis.com>
1401
1402 * testsuite/regress-demangle (failed test): Show result and
1403 expected output.
1404
6d0be369
AH
14052000-07-07 Andrew Haley <aph@cygnus.com>
1406
1407 * cplus-dem.c (main): fflush() after emitting last char before
1408 waiting for input.
1409
bece74bd
AS
14102000-06-28 Alex Samuel <samuel@codesourcery.com>
1411
1412 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1413 (demangle_name): Handle <substitution> followed by
1414 <unqualified-template-name>.
1415 (demangle_type): Follow special substitutions with
1416 <class-enum-type>
1417 (demangle_subtitution): Set template_p for special substitutions.
1418 (main): Fix typos.
d1209685 1419
229b8ec7
AS
14202000-06-27 Alex Samuel <samuel@codesourcery.com>
1421
1422 * cp-demangle.c (demangle_special_name): Swap base and derived
1423 class when demangling construction vtables.
1424
051664b0
AS
14252000-06-21 Alex Samuel <samuel@codesourcery.com>
1426
1427 * cp-demangle.c: Don't include ctype.h.
1428 (IS_DIGIT): New macro.
1429 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1430 instead of isdigit and isalpanum.
1431 (demangling_def): Make name and next const pointers.
1432 (STATUS_ALLOCATION_FAILED): New status code.
1433 (dyn_string_append_space): Handle failure in
1434 dyn_string_append_char.
1435 (int_to_dyn_string): Likewise. Change return value to status_t.
1436 (string_list_new): Handle failure of dyn_string_init.
1437 (result_close_template_list): Change return type to status_t.
1438 Handle failure in dyn_string_append.
1439 (result_push): Change return value to status_t. Handle failure in
1440 string_list_new. Handle failure of result_push throughout.
1441 (substitution_add): Change return value to status_t. Handle
1442 dyn_string failures. Handle failure of substitution_add
1443 throughout.
1444 (template_arg_list_new): Return NULL on allocation failure.
1445 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1446 Handle error result throughout.
1447 (result_append): Likewise.
1448 (result_append_char): Likewise.
1449 (result_append_space): Likewise.
1450 (demangling_new): Make argument a const pointer. Handle
1451 allocation failures.
1452 (demangle_template_args): Handle failure in template_arg_list_new
1453 and result_close_template_list.
1454 (demangle_discriminator): Return if int_to_dyn_string fails.
1455 (cp_demangle): Likewise.
1456 (cp_demangle_type): New function.
1457 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1458 memory allocation failure.
1459 (main): Likewise.
1460 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1461 IN_LIBGCC2.
1462 (dyn_string_init): Change return value to int. Handle
1463 RETURN_ON_ALLOCATION_FAILURE case.
1464 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1465 (dyn_string_release): Delete the dyn_string.
1466 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1467 (dyn_string_copy): Change return type to int.
1468 (dyn_string_copy_cstr): Likewise.
1469 (dyn_string_prepend): Likewise.
1470 (dyn_string_prepend_cstr): Likewise.
1471 (dyn_string_insert): Likewise.
1472 (dyn_string_insert_cstr): Likewise.
1473 (dyn_string_append): Likewise.
1474 (dyn_string_append_cstr): Likewise.
1475 (dyn_string_append_char): Likewise.
1476 (dyn_string_substring): Likewise.
d1209685 1477
fe06b696
ZW
14782000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1479
1480 * cp-demangle.c (demangle_operator_name): Add spaces before
1481 names beginning with a letter: delete, delete[], new, new[],
1482 sizeof.
1483 (demangle_special_name): Handle TF <type> and TJ <type>.
1484
6223e158
PDM
1485Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1486
1487 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1488
48f3e29b
PDM
1489Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1490
1491 * cp-demangle.c (stdio.h): File included unconditionaly.
1492 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1493 * dyn-string.c (stdio.h): File included.
1494 * partition.c (partition_print): No `&' needed to take the address of
1495 a function.
1496
69197e7e
KG
14972000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1498
1499 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1500
69197e7e
KG
1501 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1502
1503 * cp-demangle.c (demangle_char): Change parameter from char to int.
1504 (demangle_expression, demangle_expr_primary): Remove extra
1505 semi-colon in prototype.
1506
1507 * dyn-string.c (dyn_string_append_char): Change parameter from
1508 char to int.
1509
1510 * memcmp.c (memcmp): Constify.
1511
1512 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1513 __extension__.
1514
1515 * partition.c (elem_compare): Prototype. Don't cast away
1516 const-ness.
1517
1518 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1519
7eb23b1f
KG
15202000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1521
1522 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1523
1524 * cp-demangle.c: Include demangle.h.
1525 (template_arg_list_new): DeANSIfy.
1526 (cp_demangle): Make static and add prototype.
1527 (operator_code, operators): Constify.
1528 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1529
3faa108c
AS
15302000-06-05 Alex Samuel <samuel@codesourcery.com>
1531
1532 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1533 unsigned char.
1534 (demangle_unqualified_name): Likewise.
1535 (demangle_number_literally): Likewise.
1536 (demangle_type): Likewise.
1537 (demangle_substitution): Likewise.
1538 (is_mangled_char): Likewise, for isalnum.
1539
69afa80d
AS
15402000-06-04 Alex Samuel <samuel@codesourcery.com>
1541
1542 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1543 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1544 (cp-demangle.o): New dependency.
1545 (dyn-string.o): Likewise.
1546
1547 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1548
1549 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1550 demangler.
1551 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1552 demangling mode.
1553 (gnu_new_abi_symbol_characters): New function.
1554 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1555 file.
1556 * cp-demangle.c: New file.
d1209685 1557
0b72c3df
AC
1558Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1559
1560 * floatformat.c: Add name to each floatformat field.
1561
270cea06
JL
1562Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1563
1564 * Makefile.in (objalloc.o): Depend on config.h
1565
d11ec6f0
ZW
15662000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1567
1568 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1569 if HAVE_STRING_H.
1570 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1571 * objalloc.c: Include config.h. Include stdlib.h and don't
1572 declare malloc or free if HAVE_STDLIB_H.
1573 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1574 else declare malloc without prototype. Include string.h if
1575 HAVE_STRING_H, else declare memset without prototype. Don't
1576 include stddef.h.
1577
f8e2da56
MS
15782000-05-23 Mike Stump <mrs@wrs.com>
1579
1580 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1581 -j3.
f8e2da56 1582
650f3068
DA
15832000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1584
1585 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1586
1d2da2e1
HB
15872000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1588
d1209685 1589 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1590 probably zero, also eliminate a warning on alpha.
1591
47668d0a
DE
15922000-05-15 David Edelsohn <edelsohn@gnu.org>
1593
c7a79a32 1594 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1595 on $(enable_shared).
1596
36348eab
JJ
15972000-05-10 Jakub Jelinek <jakub@redhat.com>
1598
1599 * config.table: Use mh-sparcpic for sparc*-*-*.
1600
209bbe34
NC
16012000-05-08 Nick Clifton <nickc@cygnus.com>
1602
1603 * Makefile.in (CFILES): Add strncmp.c.
1604 (NEEDED): Add strncmp.
1605
a85a47fb
KG
16062000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1607
1608 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1609 Cast the arguments to `islower' to `unsigned char'.
1610 (print_demangler_list): Prototype.
1611
4aef973c
PDM
1612Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1613
1614 * sort.c (UCHAR_MAX): Provide fallback definition.
1615
3b94497c
AO
16162000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1617
1618 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1619 SUBDIRS.
1620
24eaa47a
KB
16212000-04-28 Kenneth Block <block@zk3.dec.com>
1622 Jason Merrill <jason@casey.cygnus.com>
1623
d1209685
ZW
1624 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1625 (cplus_demangle_set_style): New function for setting style.
1626 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1627
a9266bfa
KG
16282000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1629
1630 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1631
1632 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1633 (libiberty_AC_FUNC_STRNCMP): Invoke.
1634
1635 * strncmp.c: New file.
1636
8e02c4d0
JH
1637Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1638
1639 * hashtab.c (htab_expand): Add prototype.
1640 (find_empty_slot_for_expand): Likewise.
1641
4feeaae3
KG
16422000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1643
1644 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1645 match prototype.
1646 (htab_expand): Cast the return value of xcalloc.
1647
18a94a2f
MM
16482000-04-24 Mark Mitchell <mark@codesourcery.com>
1649
1650 * hashtab.c (hash_pointer): New function.
1651 (eq_pointer): Likewise.
1652 (htab_hash_pointer): New variable.
1653 (htab_eq_pointer): Likewise.
1654
eeb0656f
MM
16552000-04-23 Mark Mitchell <mark@codesourcery.com>
1656
b51024fc
MM
1657 * sort.c (sort_pointers): Fix endianness bugs.
1658
eeb0656f
MM
1659 * sort.c: New file.
1660 * Makefile.in (CFILES): Add sort.c
1661 (REQUIRED_OFILES): Add sort.o.
1662 (sort.o): New target.
1663
7277f72d
MS
16642000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1665
1666 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1667 4.3BSD systems.
1668
e38992e8
RK
1669Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1670
1671 * hashtab.c: Various minor cleanups.
1672 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1673 (htab_find_slot): Likewise.
1674
498e1ab1
DP
16752000-04-16 Dave Pitts <dpitts@cozx.com>
1676
1677 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1678
dc17cc7b
RH
16792000-04-05 Richard Henderson <rth@cygnus.com>
1680
1681 * splay-tree.c (splay_tree_remove): New.
1682
b13eb66b
MM
16832000-03-30 Mark Mitchell <mark@codesourcery.com>
1684
1685 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1686 codes.
1687 (htab_find_with_hash): Likewise.
1688 (htab_find_slot_with_hash): Likewise.
d1209685 1689
0194e877
ZW
16902000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1691
1692 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1693 unless it will be used. Rearrange loop for better
1694 optimization.
1695 (higher_prime_number): Add static prototype.
1696
abc61fd4
JL
1697Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1698
1699 * Makefile.in (partition.o): Depend on config.h
1700
8c5d513f
BS
17012000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1702
1703 * hashtab.c (find_empty_slot_for_expand): New function.
1704 (htab_expand): Use it instead of htab_find_slot.
1705 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1706 argument HASH.
1707 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1708 (htab_find): New wrapper function.
1709 (htab_find_slot): Likewise.
1710 (htab_traverse): Pass slot, not entry, to called function.
1711
d9d4fb43
AS
17122000-03-09 Alex Samuel <samuel@codesourcery.com>
1713
1714 * Makefile.in (CFILES): Add partition.c.
1715 (REQUIRED_OFILES): Add partition.o.
1716 (partition.o): New rule.
1717 * partition.c: New file.
d1209685 1718
5dc9cffd
ZW
17192000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1720
1721 * hashtab.c (htab_create): Set del_f.
1722 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1723 Use it.
1724
5194cf08
ZW
17252000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1726
1727 * hashtab.c: Remove debugging variables (all_searches,
1728 all_collisions, all_expansions). Delete
1729 all_hash_table_collisions.
1730 (create_hash_table, delete_hash_table, empty_hash_table,
1731 find_hash_table_entry, remove_element_from_hash_table_entry,
1732 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1733 hash_table_elements_number, hash_table_collisions): Rename to:
1734 htab_create, htab_delete, htab_empty, htab_find_slot,
1735 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1736 htab_elements, htab_collisions.
1737 (htab_find): New function, handles common case where you don't
1738 plan to add or delete an entry.
1739 (htab_expand): Don't create a whole new table, just a new
1740 entry vector.
1741 (htab_find_slot): Simplify logic.
1742
5ad5a984
ILT
17431999-08-03 Ian Lance Taylor <ian@zembu.com>
1744
1745 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1746 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1747
1748 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1749 $(TARGETLIB)n so it works on MSDOS.
1750 (install_to_tooldir): Likewise.
1751
17521999-07-21 Ian Lance Taylor <ian@zembu.com>
1753
1754 From Mark Elbrecht:
1755 * makefile.dos: Remove; obsolete.
1756 * configure.bat: Remove; obsolete.
1757
17581999-07-11 Ian Lance Taylor <ian@zembu.com>
1759
1760 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1761 warning.
1762
aeecce42
MK
17632000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1764
1765 * pexecute.c: Conditionally include string.h.
5194cf08 1766 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1767
1eaf7d9c
KG
17682000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1769
1770 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1771 we're using gcc.
1772
1773 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1774
0fadedb2
GK
17751999-12-27 Geoff Keating <geoffk@cygnus.com>
1776
1777 * vasprintf.c (int_vasprintf): Don't re-read the format character
1778 as this mishandles strings like '%%s'.
1779
08230f26
MM
17801999-12-05 Mark Mitchell <mark@codesourcery.com>
1781
1782 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1783 rather than struct splay_tree_node.
1784 (splay_tree_insert): Use struct splay_tree_s rather than struct
1785 splay_tree.
1786
6de9b8ff
PDM
1787Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1788
1789 * hashtab.c (sys/types.h): File included.
1790
f3636679
JM
17911999-11-22 Jason Merrill <jason@casey.cygnus.com>
1792
1793 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1794 BSD license, pursuant with
1795
1796 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1797
36dd3a44
JL
1798Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1799
1800 * hashtab.c: Include stdio.h.
1801
6e300472
JL
1802Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1803
1804 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1805
df548dfc
PDM
1806Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1807
1808 * xstrdup (sys/types.h): Include this file.
1809
2c375143
NS
18101999-10-28 Nathan Sidwell <nathan@acm.org>
1811
1812 * Makefile.in (SUBDIRS): New macro.
1813 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1814 avoid multiple subdirectory cleaning.
1815 (*-subdir): Use SUBDIRS.
1816
a82cecda
JK
18171999-10-25 Jim Kingdon <http://developer.redhat.com/>
1818
1819 * cplus-dem.c: Move declarations of standard_symbol_characters and
1820 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1821 warnings.
1822
ed38f5d5
ZW
18231999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1824
1825 * hashtab.c (find_hash_table_entry): When returning a
1826 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1827 (clear_hash_table_slot): New function which deletes an entry
1828 by its position in the table, not its value.
1829 (traverse_hash_table): New function which calls a hook
1830 function for every live entry in the table.
1831
b60fe4a7
MM
18321999-10-19 Mark Mitchell <mark@codesourcery.com>
1833
1834 * cplus-dem.c (INTBUF_SIZE): New macro.
1835 (string_append_template_idx): New function.
1836 (demangle_expression): Likewise.
1837 (demangle_integral_value): Use it.
1838 (demangle_real_value): New function, split out from ...
1839 (demangle_template_value_parm): ... here. Use
1840 string_append_template_idx. Use demangle_real_value.
1841 (demangle_template): Use string_append_template_idx.
1842 (demangle_qualified): Use consume_count_with_underscores.
1843 (get_count): Tweak formatting.
1844 (do_type): Use string_append_template_idx.
5194cf08 1845
3da5522a
KG
18461999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1847
1848 * calloc.c: Add a public domain notice.
1849
d7d36ea8
PDM
1850Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1851
1852 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1853
a2f945c6
VM
1854Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1855
1856 * Makefile.in (CFILES): Add hashtab.c
1857 (REQUIRED_OFILES): Add hashtab.o
1858 (hashtab.o): Add dependencies.
1859 * hashtab.c: New file
1860
7f22ec2e
MK
1861Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1862
1863 * basename.c (DIR_SEPARATOR): New macro.
1864 (DIR_SEPARATOR_2): Likewise.
1865 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1866 (IS_DIR_SEPARATOR): Likewise.
1867 (main): Handle MSDOS style pathname.
1868
7c56a6ce
MM
18691999-10-11 Mark Mitchell <mark@codesourcery.com>
1870
1871 * cplus-dem.c (do_type): Handle pointer to member types whose
1872 enclosing classes have namespace scope.
1873
cd32188b
ME
1874Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1875
1876 * config.table: Provide a backup shell for executing move-if-change.
1877
fc232f7a
MM
18781999-10-02 Mark Mitchell <mark@codesourcery.com>
1879
1880 * xmalloc.c (xmalloc): Fix spelling error.
1881 (xcalloc, xrealloc): Likewise.
1882
2a138827
KG
18831999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1884
1885 * cplus-dem.c (fancy_abort, demangle_integral_value,
1886 demangle_arm_hp_template, recursively_demangle,
1887 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1888 (program_name, program_version, fatal): Constify a char*.
1889 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1890 (main): Call return, not exit.
1891
5a657fc3
KG
18921999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1893
1894 * choose-temp.c: Remove obsolete comment about gcc.
1895 (make_temp_file): Constify a char*.
1896
33c5ddcd
KG
1897Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1898
1899 * xmemdup.c: Include sys/types.h.
1900
b10647f1
JG
19011999-09-07 Jeff Garzik <jgarzik@pobox.com>
1902
1903 * xmemdup.c: New xmemdup function.
1904 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1905
3dd6c3af
LV
1906Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1907
5194cf08 1908 * config.table: Add openedition target.
3dd6c3af
LV
1909 * config/mh-openedition: New file.
1910
19e28e2a
ME
1911Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1912
1913 * pexecute.c (pexecute): Fill in temp_base when needed.
1914
4dfeccf9
RH
19151999-08-31 Richard Henderson <rth@cygnus.com>
1916
1917 * getpwd.c: Check HAVE_GETCWD before defining it away.
1918
4ac3cb83
KG
19191999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1920
1921 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1922 (REQUIRED_OFILES): Add getpwd.o.
1923 (getpwd.o): Add target.
1924
1925 * configure.in (AC_PREREQ): Bump to 2.13.
1926 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1927
1928 * getpwd.c: New file, moved here from gcc.
1929
e797ff70
KG
19301999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1931
1932 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1933 comparing against a signed quantity.
1934 (arm_special): Likewise.
1935 (demangle_fund_type): Likewise.
1936 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1937 ATTRIBUTE_UNUSED.
e797ff70
KG
1938 (main): Constify variable `valid_symbols'.
1939
55247fce
PDM
1940Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1941
1942 * strtoul.c (strtoul): Add parentheses around && within ||.
1943
76632dd0
DJ
1944Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1945
1946 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1947 libdir, libsubdir and tooldir.
1948
d080bbfa
MM
19491999-08-01 Mark Mitchell <mark@codesourcery.com>
1950
1951 * splay-tree.c (splay_tree_insert): Return the new node.
1952
a81c752a
RH
19531999-07-14 Richard Henderson <rth@cygnus.com>
1954
5194cf08 1955 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1956 prototyping directly.
1957 * choose-temp.c: Conditionally include string.h.
1958
8f1824d9
JM
19591999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1960
1961 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1962
652374d3
ILT
19631999-07-11 Ian Lance Taylor <ian@zembu.com>
1964
1965 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1966 warning.
1967
a4494286
JM
19681999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1969
1970 * Makefile.in (needed-list): Only include stuff we actually need
1971 for libstdc++.
1972
90e72e20
AS
19731999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1974
1975 * configure.in (checkfuncs): Add gettimeofday.
1976 * config.in, configure: Regenerated.
1977
b569200e
MK
1978Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1979
1980 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1981 the test fails.
1982 * configure: Regenerate.
1983
73919448
MS
19841999-06-10 Mike Stump <mrs@wrs.com>
1985
1986 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1987 parallel builds.
1988
fee9125c
KG
19891999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1990
1991 * putenv.c: Include ansidecl.h to define `const'.
1992 * setenv.c: Likewise.
1993
71cce721
MN
1994Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1995
a7c9637f
JL
1996 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1997 * configure.in (funcs): Add putenv and setenv.
1998 (AC_CHECK_FUNCS): Check for putenv and setenv.
1999 * configure: Rebuilt.
2000 * putenv.c setenv.c: New files.
2001
71cce721
MN
2002 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2003 bytes of space using malloc.
2004
53504016
SG
2005Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2006
2007 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2008 the *mangled pointer beyond the end of the string. Clean up code to
2009 match prevailing coding style.
2010
34842539
MH
20111999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2012
2013 * tmpnam.c (L_tmpnam): Fix typo.
2014
3a08531d
ME
2015Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2016
2017 * cplus-dem.c (standard_symbol_characters): Renamed from
2018 standard_symbol_alphabet. No longer modify TABLE.
2019 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2020 modify TABLE.
2021 (main): Corresponding changes. Use strchr to determine if a
2022 character is valid.
2023
8db9d08b
JB
20241999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2025
2026 * cplus-dem.c (main): Use table lookup to distinguish identifier
2027 characters from non-identifier characters.
2028 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2029
6a071f4a
FF
2030Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2031
2032 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2033 * getruntime.c: Only attempt to include sys/resource.h and
2034 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2035 are defined.
2036
7dd88617
DT
2037Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2038
2039 * configure.in (alloca detection): Handle alloca directly for interix.
2040 * configure: Rebuilt.
2041
7a1528bc
MK
2042Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2043
2044 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2045
76409268
JB
20461999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2047
2048 Fix from Dale Hawkins:
5194cf08 2049 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
2050 reallocated properly if we use it again.
2051
2052 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2053 stricter about syntax. Always null-terminate string.
2054
acbbd80a
MK
2055Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2056
2057 * configure.in (checkfuncs): Check for sbrk.
2058 * config.in: Rebuilt.
2059 * configure: Likewise.
2060 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2061
92523551
JB
20621999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2063
2064 Fix from Marcus Daniels:
2065 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2066 identifier looking for another underscore.
2067
36eb4217
MK
2068Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2069
2070 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2071 * xmalloc.c: Likewise.
2072 (xcalloc): UWIN has sbrk.
2073 (xrealloc): Fix guard macro.
2074
2c45d1a0
RH
20751999-04-11 Richard Henderson <rth@cygnus.com>
2076
2077 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2078 or <alloca.h>.
2079 * clock.c (GNU_HZ): New definition.
2080 (clock): Use it.
2081 * getruntime.c: Likewise.
2082
2083 * config.table: Use mh-beos.
2084 * config/mh-beos: New file.
2085
391cdef0
MM
20861999-04-11 Mark Mitchell <mark@codesourcery.com>
2087
2088 * cplus-dem.c (demangle_template_value_parm): Handle
2089 pointers-to-members.
2090 (do_type): Handle template parameters as qualifiers.
2091
9d229989
JB
20921999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2093
2094 * cplus-dem.c: Attempt to handle overflows in counts with some
2095 semblance of grace.
2096 (consume_count): Detect overflows. Return -1 to indicate errors,
2097 instead of zero.
2098 (demangle_template_value_parm, demangle_template): Handle change
2099 to consume_count's return convention.
2100
7c72138a
TT
21011999-04-05 Tom Tromey <tromey@cygnus.com>
2102
2103 * testsuite/regress-demangle: New file.
2104 * testsuite/demangle-expected: New file.
2105
2106 * Makefile.in (all, check, installcheck, info, install-info,
2107 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2108 distclean, maintainer-clean, realclean): Depend on corresponding
2109 `-subdir' target.
2110 (all-subdir check-subdir installcheck-subdir info-subdir
2111 install-info-subdir clean-info-subdir dvi-subdir
2112 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2113 distclean-subdir maintainer-clean-subdir): New target.
2114 * testsuite/Makefile.in: New file.
2115 * configure: Rebuilt.
2116 * configure.in: Create testsuite/Makefile.
2117
ae7f7270
MM
21181999-04-02 Mark Mitchell <mark@codesourcery.com>
2119
2120 * splay-tree.h (splay_tree_compare_pointers): Define.
2121
30f72379
MM
21221999-03-30 Mark Mitchell <mark@codesourcery.com>
2123
2124 * splay-tree.c (splay_tree_compare_ints): Define.
2125
4cc48683
TT
21261999-03-30 Tom Tromey <tromey@cygnus.com>
2127
2128 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2129 don't advance input pointer.
2130 (demangle_class_name): If consume_count didn't find a count, do
2131 nothing. Don't bother with `strlen' sanity check; consume_count
2132 does it for us.
2133
3510075c
JL
21341999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2135
2136 From Art Haas <ahaas@neosoft.com>:
2137 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2138 when doing arm or hp style.
2139 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2140
89f602a7
MK
2141Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2142
2143 * pexecute.c (__CYGWIN32__): Rename to
2144 (__CYGWIN__): this.
2145 * xmalloc.c: Likewise.
2146
2147 Changes to support i386-pc-uwin.
2148 * configure.in (*-*-uwin*): Workaround for vfork bug.
2149 * configure: Regenerate.
2150 * pexecute.c (pexecute): Be like standard Unix.
2151 (pwait): Likewise.
2152 * xmalloc.c (first_break): Define.
2153 (xmalloc_set_program_name): Use.
2154 (xmalloc): Use.
2155
9346c824
FS
2156Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2157
2158 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2159
3510075c
JL
2160Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2161
2162 * config.table: Check cygwin*, not cygwin32*.
2163
8ec65f13
DB
2164Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2165
2166 * Makefile.in: Change mkstemp -> mkstemps.
2167
687361c8
ME
2168Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2169
2170 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2171 * configure.in (funcs): Check for and conditionally add mkstemps to
2172 the list of functions libiberty will provide.
2173 * configure: Rebuilt.
5194cf08 2174
b207e09c
MK
2175Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2176
5194cf08 2177 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2178 platforms that don't have HZ.
2179 * getruntime.c (HZ): Likewise.
2180
16b4c15e
RH
2181Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2182
2183 * Makefile.in (xstrdup.o): Depend on config.h.
2184
38beb75c
UD
2185Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2186
2187 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2188 freeing it.
2189
7e4311a3
KG
2190Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2191
2192 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2193
3510075c
JL
2194Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2195
2196 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2197 splay-tree.o.
2198
21991999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2200
2201 * configure.in: Require autoconf 2.12.1 or higher.
2202
fb9939b8
MM
22031998-12-30 Michael Meissner <meissner@cygnus.com>
2204
2205 * random.c (NULL): Don't redefine NULL if it is already defined.
2206
087aa398
KG
2207Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2208
2209 * argv.c (buildargv): Cast the result of alloca in assignment.
2210
2211 * choose-temp.c: Include stdlib.h.
38beb75c 2212
087aa398 2213 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2214 (snarf_numeric_literal): Constify first parameter.
2215 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2216 int, not a char.
087aa398
KG
2217 (demangle_qualifier): Likewise.
2218 (demangle_signature): Cast the argument of a ctype function to
2219 unsigned char.
2220 (arm_pt): Add parens around assignment used as truth value.
2221 (demangle_arm_hp_template): Constify variable `args'.
2222 (do_hpacc_template_const_value): Cast the argument of a ctype
2223 function to unsigned char.
2224 (do_hpacc_template_literal): Remove unused variable `i'.
2225 (snarf_numeric_literal): Constify parameter `args'.
2226 Cast the argument of a ctype function to unsigned char.
2227
2228 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2229 avoid ambiguous `else'.
38beb75c 2230
087aa398 2231 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2232 `cstart' and `cend' to unsigned char. Cast the argument of macro
2233 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2234
2235 * objalloc.c (free): Add prototype.
2236
21f2174d
HPN
2237Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2238
2239 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2240
3510075c
JL
2241Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2242
2243 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2244 doesn't exist.
3510075c 2245 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2246
e8fc8222
AM
2247Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2248
2249 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2250 bumping the pointer we read from. Also prepend these codes,
2251 as we do in other places.
2252
3510075c
JL
22531998-12-18 Nick Clifton <nickc@cygnus.com>
2254
2255 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2256 'const char *' in order to match its usage when calling siblings.
2257 (snarf_numeric_literal): Make first arg 'const char **' in order
2258 to match usage.
11a0bb74 2259
f4f30aa1
JL
2260Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2261
11a0bb74
KG
2262 * choose-temp.c: Don't check IN_GCC anymore.
2263
2264 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2265 * memchr.c (memchr): Likewise.
2266 * memcpy.c (memcpy): Likewise.
2267 * memmove.c (memmove): Likewise.
38beb75c 2268
11a0bb74
KG
2269 * mkstemp.c: Don't check IN_GCC anymore.
2270 * pexecute.c: Likewise.
2271 * splay-tree.c: Likewise.
38beb75c 2272
11a0bb74
KG
2273 * strchr.c (strchr): Use `const', not `CONST'.
2274 * strrchr.c (strrchr): Likewise.
2275 * strtol.c (strtol): Likewise.
2276 * strtoul.c (strtoul): Likewise.
2277
70d5ccef
DT
2278Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2279 Elena Zannoni <ezannoni@cygnus.com>
2280 Stan Shebs <shebs@cygnus.com>
2281 Edith Epstein <eepstein@cygnus.com>
2282 Andres MacLeod <amacleod@cygnus.com>
2283 Satish Pai <pai@apollo.hp.com>
2284
2285 * HP aCC demangling support.
2286 * cplus-dem.c
2287 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2288 demangling correctly when -edg specified; set the demangling style
2289 when user specifies 'edg'. Set strip_underscore to
2290 prepends_underscore, if not HPUXHPPA. Set
2291 current_demangling_style to hp_demangling if HPUXHPPA. Set
2292 current demangling style correctly if the switch is hp. Read
2293 label correctly also in the HP style case.
70d5ccef 2294 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2295 function.
70d5ccef 2296 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2297 style for this case is the same as ARM.
70d5ccef
DT
2298 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2299 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2300 demangle_arm_pt.); check and set value of temp_start field in
2301 multiple places. Also, when ceching for end of template args,
2302 check to see if at end of static member of template class.
70d5ccef 2303 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2304 include template args in string defining class.
70d5ccef
DT
2305 (demangle_class_name): use demangel_arm_hp_template.
2306 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2307 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2308 Handle EDG_DEMANGLING style. Handle constructor and destructor
2309 ops for HP style.
70d5ccef 2310 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2311 styles. global destructor and constructor for HP style are same
2312 as for ARM style. Same for local variables.
70d5ccef
DT
2313 (demangle_qualified): handle EDG_DEMANGLING style.
2314 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2315 cases '1' - '9' : initialize the temp_start field to -1 and handle
2316 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2317 and AUTO_DEMANGLING styles. If expecting a function and managed
2318 to demangle the funct args, then handle the LUCID_DEMANGLING,
2319 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2320 class name after "Lnnn_ in HP style case. HP style too needs to
2321 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2322 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2323 value param for HP/aCC.
70d5ccef 2324 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2325 literal parameter for HP aCC.
70d5ccef
DT
2326 (recursively_demangle): new function
2327 (snarf_numeric_literal): new function.
2328 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2329 to message.
70d5ccef 2330
8d525fa8
CF
2331Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2332
2333 * pexecute.c: Remove obsolete ifdefed cygwin code.
2334
9b1a92d8
KG
2335Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2336
2337 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2338 * cplus-dem.c: Likewise. Conform to libiberty.h.
2339 * pexecute.c: Likewise.
2340 * splay-tree.c: Likewise.
2341
c85c3232
MS
23421998-11-25 Mike Stump <mrs@wrs.com>
2343
2344 * Makefile.in (splay-tree.o): Add config.h dependency.
2345
35a6cd99
KG
2346Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2347
2348 * configure.in: Use AC_PREREQ(2.12.1).
2349
6e6e34b7
BK
23501998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2351
5194cf08 2352 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2353
59b67c11
JL
2354Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2355
2356 * mpw.c (mpw_access): Add missing parens.
2357
a6458d1d
KG
2358Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2359
2360 * configure.in: Call AC_HEADER_SYS_WAIT.
2361
2362 * pexecute.c: Include sys/wait.h when !IN_GCC.
2363
3510075c
JL
2364Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2365
2366 * pexecute.c: revert back to checking old Cygwin
2367 preprocessor symbol until some time has passed.
2368
2369Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2370
2371 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2372 since it will now support similar constructs.
2373
a9acf741
KG
2374Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2375
2376 * configure.in: Check for calloc.
2377
2378 * calloc.c: New file.
2379
2380 * xmalloc.c (xcalloc): New function.
2381
a49fb37a
AM
2382Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2383
2384 *cplus-dem.c (demangle_prefix): Use the last "__"
2385 in the mangled name when looking for the signature. This allows
2386 template names to begin with "__".
2387
0e714131
MM
23881998-11-08 Mark Mitchell <mark@markmitchell.com>
2389
ec2288ff
MM
2390 * cplus-dem.c (type_kind_t): Add tk_reference.
2391 (demangle_template_value_parm): Handle it.
2392 (do_type): Use it for references, instead of tk_pointer.
2393
0e714131
MM
2394 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2395 not internal_cplus_demangle.
2396
2931b6d4
KG
2397Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2398
2399 * choose-temp.c: Don't include gansidecl.h.
2400 * mkstemp.c: Likewise.
2401 * pexecute.c: Likewise.
2402
dd8f3ed5
GN
2403Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2404
5194cf08
ZW
2405 * configure.in: detect cygwin* instead of cygwin32*
2406 * configure: regenerate
dd8f3ed5 2407
c5f7c445
KG
2408Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2409
2410 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2411 whether to include config.h. Possibly include unistd.h in the
2412 !IN_GCC case. Define VFORK_STRING as a printable function call
2413 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2414 defined, include vfork.h. If VMS is defined, define vfork()
2415 appropriately. Remove vfork check on USG, we're using autoconf.
2416 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2417 locally what string to use.
c5f7c445 2418
ad3ef78e
MM
24191998-10-26 Mark Mitchell <mark@markmitchell.com>
2420
2421 * splay-tree.c: Tweak include directives to make sure declarations of
2422 xmalloc and free are available.
2423
224301c1
MM
24241998-10-25 Mark Mitchell <mark@markmitchell.com>
2425
2426 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2427 anonymous namespaces.
38beb75c 2428
d9db46fd
MM
24291998-10-23 Mark Mitchell <mark@markmitchell.com>
2430
2431 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2432 with type_quals.
2433 (TYPE_UNQUALIFIED): New macro.
2434 (TYPE_QUAL_CONST): Likewise.
2435 (TYPE_QUAL_VOLATILE): Likewise.
2436 (TYPE_QUAL_RESTRICT): Likewise.
2437 (code_for_qualifier): New function.
2438 (qualifier_string): Likewise.
2439 (demangle_qualifier): Likewise.
2440 (internal_cplus_demangle): Use them.
2441 (demangle_signature): Likewise.
2442 (demangle_template_value_parm): Likewise.
2443 (do_type): Likewise.
2444 (demangle_fund_type)): Likewise.
224301c1 2445
b056ad1c
KG
2446Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2447
2448 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2449 to match prototype.
2450
ed87f9c8
MM
24511998-10-21 Mark Mitchell <mark@markmitchell.com>
2452
2453 * splay-tree.c: New file.
2454 * Makefile.in (CFILES): Add it.
2455 (REQUIRED_OFILES): Likewise.
2456 (splay-tree.o): Add dependencies.
2457
e0c13971
AS
2458Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2459
2460 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2461 range of 'K' index.
2462
91e0f659
KG
2463Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2464
2465 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2466
2467 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2468 `unsigned char'.
2469 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2470 comparing against one.
2471 (cplus_mangle_opname): Likewise.
2472 (demangle_integral_value): Cast argument of ctype macro to
2473 `unsigned char'.
2474 (demangle_template_value_parm): Likewise.
2475 (demangle_template): Initialize variable `bindex'. Cast the
2476 result of `strlen' to (int) when comparing against one. Remove
2477 unused variable `start_of_value_parm'.
2478 (demangle_class_name): Cast the result of `strlen' to (int) when
2479 comparing against one.
2480 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2481 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2482 when comparing against one.
2483 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2484 (get_count): Likewise.
2485 (do_type): Likewise. Cast the result of `strlen' to (int) when
2486 comparing against one.
2487 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2488 (demangle_function_name): Cast the result of `strlen' to (int)
2489 when comparing against one.
2490
2491 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2492 comparing against one.
2493
73aeb2ff
JL
2494Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2495
5194cf08
ZW
2496 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2497 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2498 * config.in, configure: Rebuilt.
ae76f1be 2499
73aeb2ff
JL
2500 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2501 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2502 * config.in, configure: Rebuilt.
2503
dd8f3ed5
GN
2504Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2505
5194cf08 2506 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2507
f77d8413
MT
2508Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2509
2510 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2511
ca6b370d
JL
2512Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2513
2514 * Merge egcs & devo libiberty.
2515
ab4856b1
ML
2516