* libiberty.h (lrealpath): Add declaration.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
25dfe0ac
DD
12003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2
3 * cplus_dem.c: Fix typo: intializes -> initializes.
4
8b90eef4
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
fcd7c7c9
DD
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
073c427b
DD
272003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28
29 * acconfig.h: New file. Add uintptr_t.
30 * config.in: Regenerated.
31
f8bd3000
DD
322003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
33
34 * libiberty.texi: Update to GFDL 1.2.
35
85b9a938
DD
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
578460f2
AO
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
7f285245
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
5f9624e3
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
9c2259b8
DD
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
5a17353c
DD
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
eed2b28c
DD
902003-01-20 Josef Zlomek <zlomekj@suse.cz>
91
92 * hashtab.c (htab_expand): Fix allocation of new entries.
93
27a39a5f
DD
942003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
95
96 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
97
98 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
99 mkinstalldirs command.
100
b51c1553
DD
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
756954c3
DD
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
2a80c0a4
DD
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
768b20d8
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
f52d1d64
JJ
1222002-10-16 Jakub Jelinek <jakub@redhat.com>
123
124 * config.table: Use mh-s390pic for s390x too.
125
0d3deb8d
DD
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
1b67de92
DD
1322002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
133
134 * Makefile.in (all): Fix multilib parallel build.
135
585cc78f
DD
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
e21b0cc1
NC
1542002-09-19 Nick Clifton <nickc@redhat.com>
155
156 * README: Update email addresses for bugs and patches.
157
a54ba43f
DD
1582002-09-10 Mike Stump <mrs@apple.com>
159
160 * splay-tree.c (splay_tree_successor): Fix comments.
161
1622002-09-11 Zack Weinberg <zack@codesourcery.com>
163
164 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
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
01cea699
DD
1712002-09-05 Roger Sayle <roger@eyesopen.com>
172
173 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
174
a2832523
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
1e3f0be0
DD
1832002-07-29 Neil Booth <neil@daikokuya.co.uk>
184
185 * cplus-dem.c (PREPEND_BLANK): Remove.
186
b851d07b
DD
1872002-07-10 Jason Merrill <jason@redhat.com>
188
189 * cp-demangle.c (demangle_identifier): Support extended Unicode
190 characters.
191
2a9dffbf
DD
1922002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
193
194 * cp-demangle.c (demangle_v3_with_details): Wrap in
195 !defined IN_GLIBCPP_V3.
196
793011ca
DD
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
b39b76b8
DD
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
4748c6d8
DD
2082002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
209
210 * Makefile.in (install_to_libdir): Add $(DESTDIR).
211 (install_to_tooldir): Likewise.
212
f9c3326a
DD
2132002-06-17 Douglas Rupp <rupp@gnat.com>
214
215 * lbasename.c: Add 2002 to copyright.
216 (IS_DIR_SEPARATOR): Remove VMS junk.
217
18893690
DD
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
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
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
9296c8b2
DD
2372002-05-13 Andreas Schwab <schwab@suse.de>
238
239 * config.table: Use mh-x86pic also for x86-64.
240
52d98c2d
DD
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
cafa3917
DD
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
b1c933fc
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
0c4460bb
DD
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
f2160d2b
DD
2672002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
268
3ebf1f59 269 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
270 if it is NULL.
271
7dd4d42a
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
38e57a35
DD
2792002-03-27 Mark Mitchell <mark@codesourcery.com>
280
281 * dyn-string.c: Add libgcc exception to copyright notice.
282
cfed0715
DD
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
1504972f
DD
2892002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
290
291 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
292 seen.
293
35efcd67
DD
2942002-03-12 Mark Mitchell <mark@codesourcery.com>
295
296 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
297 notice.
298
dabc64ea
DD
2992002-03-11 Douglas B Rupp <rupp@gnat.com>
300
301 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
302
3ddbd84c
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
efdab807
AC
3092002-03-06 Andrew Cagney <ac131313@redhat.com>
310
311 * floatformat.c (floatformat_arm_ext_big): Delete definition.
312
50d4562d
DD
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
3202002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
321
322 * xmalloc.c (xmalloc_fail): Clarify error message further.
323
6e9980f5
DD
3242002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
325
326 * xmalloc.c (xmalloc_fail): Clarify error message.
327
18893690 3282002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
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
59ea9fe7
DD
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
6f848550
DD
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
44354ae1
DD
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
42da15d6
DD
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
b117c158
DD
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
c78d91b1
DD
3902002-01-31 Phil Edwards <pme@gcc.gnu.org>
391
392 * cp-demangle.c: Revert yesterday's change.
393
bef8b55d
DD
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
2c955b8b
DD
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
58b1717a
RH
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
cc096b71
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
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
20d54542
DD
4352002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
436
c23795e2
DD
437 * cp-demangle.c (long_options): Const-ify.
438 * cplus-dem.c (long_options): Likewise.
439
20d54542
DD
440 * cplus-dem.c (mystrstr): Delete. All callers changed to use
441 strstr instead.
442
f348a7b1
DD
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.
447
d86cd745
DD
4482001-12-24 Douglas B. Rupp <rupp@gnat.com>
449
450 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
451 * configure: Regenerated.
452
ae533646
DD
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
c0eb281b
DD
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
2da4c07f
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
24acd898
DD
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
fec50157 4772001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 478 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
479
480 * Makefile.in (stamp-h): Depend on Makefile for proper
481 serialization.
482 (*-subdir): Depend on config.h for proper serialization.
483
5527febf
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
941d74a0
DD
4902001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
491
492 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
493 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
494 is available.
495
dc579051
DD
496Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
497
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
504 * regex.c (PREFIX): Provide an alternate definition for
505 non-ANSI/ISO compilers.
506 (ARG_PREFIX): Likewise.
507
1a78a35a
DD
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
4e55c4b6
DD
5162001-11-03 Alan Modra <amodra@bigpond.net.au>
517
518 * configure.in: Cope with missing makeinfo.
519 * configure: Regenerate.
520
d311a83a
DD
5212001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
522
523 * hex.c (hex_init): Provide empty stub.
524
525 * hex.c (hex_init): Delete.
526 (_hex_value): Const-ify and initialize at compile-time.
527
3bc62f91
DD
5282001-10-19 H.J. Lu <hjl@gnu.org>
529
530 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
531 necessary.
532
5d852400
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,
5527febf 537 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
538 Improve manual formatting.
539 * functions.texi: Regenerate.
540
ba19b94f
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.
553
56056af5
DD
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
99b58139
DD
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
e6450fe5
DD
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
da191b5b
DD
5832001-09-29 DJ Delorie <dj@redhat.com>
584
585 * configure: Regenerate.
586
916aaa12
DD
5872001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
588
589 * concat.c: Include stdlib.h.
590
fa9f0e33
DD
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
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.
614
39423523
DD
6152001-09-20 DJ Delorie <dj@redhat.com>
616 Phil Edwards <pedwards@disaster.jaj.com>
617
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.
639
66c94e19
DD
6402001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
641
642 * concat.c (reconcat): Fix for traditional C.
643
99ee3a8f
DD
6442001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
645
646 * concat.c (reconcat): New function.
647
54c20242
DD
6482001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
649
650 * concat.c (vconcat_length, vconcat_copy, concat_length,
651 concat_copy, concat_copy2): New functions.
652 (concat): Use vconcat_length/vconcat_copy.
653
654 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
655 Define.
656
843f21be
DD
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.
661
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
8a423cb3
DD
6662001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
667
668 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
669
dc676635
DD
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
f080c76d
DD
6812001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
682
3ebf1f59
DD
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.
f080c76d 687
f01b59ed
DD
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
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
eb828599
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
4e55c4b6
DD
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
68a41de7
DD
7172001-08-17 Christopher Faylor <cgf@cygnus.com>
718
719 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
720 * configure: Regenerate.
721
8fc34799
DD
7222001-08-16 Richard Henderson <rth@redhat.com>
723
724 * hashtab.c (htab_hash_string): New.
725
16bad250
AC
7262001-08-13 Andrew Cagney <ac131313@redhat.com>
727
728 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
729 name.
730
a9022147
DD
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
8aefe91a 7372001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
738
739 * lbasename.c (lbasename): Change function definition to return a
740 const char pointer.
741
e7e9b069
DD
7422001-08-07 Jason Merrill <jason_merrill@redhat.com>
743
744 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
745 for".
746
cc5144f8
DD
7472001-08-03 Richard Henderson <rth@redhat.com>
748
749 * Makefile.in (concat.o): Depend on config.h.
750
8aefe91a
DD
7512001-07-30 Andreas Jaeger <aj@suse.de>
752
753 * concat.c: Include "config.h".
754
86710ce2
DD
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
a5d8f731
DD
7722001-07-25 Daniel Jacobowitz <drow@mvista.com>
773
774 * Makefile.in (regex.o): Add dependency on config.h.
775
6ad8a379
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
2a6ef469
DD
7902001-07-10 Jeff Johnston <jjohnstn@redhat.com>
791
792 * Makefile.in: Add support for regex code.
793 * regex.c: New file.
794
7b78baae
DD
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
926150e2
DD
8012001-06-18 Richard Henderson <rth@redhat.com>
802
803 * concat.c: Include <sys/types.h>.
804
11f6f21d
DD
8052001-06-11 Loren J. Rittle <ljrittle@acm.org>
806
807 bootstrap/3106
808 * strerror.c (sys_nerr): Hide the OS header version.
809 * strsignal.c (sys_nsig): Likewise.
810
d42dae6c
DD
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
e05c6d27
DD
8162001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
817
818 * partition.c: Fix misspelling of `implementation'.
819
b50c4073
DD
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
457161bf
DD
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
e00bc6a7
DD
8332001-05-07 Mark Mitchell <mark@codesourcery.com>
834
835 * splay-tree.h (splay_tree_max): New function.
836 (splay_tree_min): Likewise.
837
400ee7e1
DB
8382001-04-15 Daniel Berlin <dan@cgsoftware.com>
839
840 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
841
842 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 843
d9697354
DD
8442001-04-03 Zack Weinberg <zackw@stanford.edu>
845
846 * make-temp-file.c (try): Inline.
847
a7bf099b
DD
8482001-02-28 Richard Henderson <rth@redhat.com>
849
850 * Makefile.in (make-temp-file.o): Depend on config.h.
851
30a1def2
DD
8522001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
853
854 * memchr.c (memchr): Adjust condition to avoid infinite loop.
855
079c672a
DD
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
a88e356a
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
1dffcc66
DD
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
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
e61231f1
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
a9cbbe6d
DD
8922001-03-20 Jason Merrill <jason@redhat.com>
893
894 * cplus-dem.c (main): Skip initial $.
895
b1e51b3c
DD
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
8aa30e60 9012001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 902 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 903
8aa30e60
DD
904 * libiberty/lbasename.c: New file.
905 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 906
30673bf5
DD
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.
fa03f0a7 915
30673bf5
DD
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.
fa03f0a7 925
5810f394
DD
9262001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
927
928 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 929
a9db032a
DD
9302001-02-16 Loren J. Rittle <ljrittle@acm.org>
931
932 * cplus-dem.c (main): Initialize style.
fa03f0a7 933
8aefe91a
DD
9342001-02-02 Phil Edwards <pme@sources.redhat.com>
935
936 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
937
bc9bf259
DD
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.
953 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
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.
fa03f0a7 959
f6528837
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.
9d969b59 968
c6da642e
DD
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
ae7d06ad 9762000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
977
978 * safe-ctype.c: #include "ansidecl.h".
979 * strtod.c: Likewise.
980
ae7d06ad 9812000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
982
983 * strtoul.c: Include safe-ctype.h, not ctype.h.
984
ac424eb3
DD
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
4415a860
DD
9972000-12-07 Mike Stump <mrs@wrs.com>
998
999 * Makefile.in (distclean): When cleaning, remove testsuite.
1000
849ee224
DD
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
ae7d06ad 10062000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
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.
ae7d06ad 1012 (main): Use standard symbol chars for auto_demangling.
e49a569c 1013
ae7d06ad 10142000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1015
1016 * hashtab.c (higher_prime_number): Use a table, rather than a
1017 seive, to find the next prime.
ae7d06ad
NC
1018
10192000-11-22 H.J. Lu <hjl@gnu.org>
1020
1021 * cplus-dem.c (main): Handle gnat_demangling.
1022
10232000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
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.
ae7d06ad 1033
2ea7befd
DD
1034 * xmalloc.c (xmalloc_failed): New function, does error
1035 reporting on failed allocation.
1036 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1037
f1775526
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
ae7d06ad 10502000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1051
1052 * cplus-dem.c (grow_vect): Prototype.
1053 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1054
5dd42ef4
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
296731c1
DD
10602000-11-15 Kenneth Block <kenneth.block@compaq.com>
1061
8944fb9d 1062 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1063 be used in GCC.
1064
6e53a714 10652000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1066
5dd42ef4 1067 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1068 list.
1069
99a4c1bd
HPN
10702000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1071
1072 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1073 xcalloc depending on htab->return_allocation_failure. Return zero
1074 if calloc fails.
99a4c1bd
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.
8aefe91a 1078 Update comment to cover this.
99a4c1bd 1079
e0f3df8f
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
ae7d06ad 10862000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
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.
ae7d06ad 1092 Rename throughout.
59666b35
DD
1093 (result_append): Rename to...
1094 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1095 throughout.
59666b35
DD
1096 (result_append_char): Rename to...
1097 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1098 throughout.
59666b35
DD
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.
ae7d06ad 1110 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
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
ae7d06ad
NC
1114 call to demangle_array_type.
1115 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1116
ae7d06ad 11172000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1118
1119 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1120
11212000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1122
1123 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1124
11252000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1126
1127 * splay-tree.c: #include <stdio.h>.
1128
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
11352000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1136
1137 * splay-tree.c (splay_tree_predecessor): New function.
1138 (splay_tree_successor): Likewise.
ae7d06ad
NC
1139
11402000-09-10 Hans-Peter Nilsson <hp@axis.com>
1141
1142 * testsuite/demangle-expected: Add four tests for type_info
1143 mangling.
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
11472000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1148
1149 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1150
11512000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1152
1153 * md5.c: #include "ansidecl.h".
1154
11552000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1156
1157 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1158 (demangle_type): Handle substitution candidates correctly in the
1159 face of special substitutions.
ae7d06ad
NC
1160
11612000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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
1173 parameter.
1174 (demangle_class_enum_type): Rename parameter.
1175 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1176
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
11822000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1183
1184 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1185 <expression>.
ae7d06ad
NC
1186
11872000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1188
1189 * cp-demangle.c (demangle_type_ptr): Increment position past
1190 pointer and reference characters.
ae7d06ad
NC
1191
11922000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
ae7d06ad
NC
1199
12002000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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
1209 parm number.
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
1213 substitution_add.
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
1219 substitutions here.
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
1227 demangle_template_param.
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.
ae7d06ad
NC
1231
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
12382000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1239
1240 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1241
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
12482000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
ae7d06ad
NC
1257
12582000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
1272 (demangle_template_param): Don't handle template arg lists here.
1273 (demangle_substitution): Remove parameter.
1274 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1275
12762000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1277
1278 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1279
12802000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
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.
ae7d06ad
NC
1285
12862000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
d3e85005 1297
ae7d06ad 12982000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1299
ae7d06ad 1300 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1301
ae7d06ad 13022000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1303
1304 * config/mh-openedition.h: Added -DLE370 definition.
1305
a9f34fb6
JL
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
90aaccd1 13152000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1316 Jeff Law <law@cygnus.com>
90aaccd1 1317
ae7d06ad 1318 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1319
90aaccd1 1320 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1321 * rename.c: Include config.h, unistd.h
1322 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1323
6ef554e3
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
ae7d06ad 13382000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1339
ae7d06ad 1340 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1341 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1342
ae7d06ad
NC
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
b1233257 13492000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1350 Jeff Law <law@cygnus.com>
1351
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
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.
b1233257 1363
7d3ffcaf
JL
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
b1233257
JL
1369 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1370
ae7d06ad
NC
13712000-07-21 Mike Stump <mrs@wrs.com>
1372
1373 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1374 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1375
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
9adf30b2
JL
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
2ed78d1b
HPN
14002000-07-17 Hans-Peter Nilsson <hp@axis.com>
1401
1402 * testsuite/regress-demangle (failed test): Show result and
1403 expected output.
1404
0473bdf7
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
03d5f569
JM
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.
ae7d06ad 1419
03d5f569
JM
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
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.
ae7d06ad 1477
eb383413 14782000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1479
eb383413
L
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>.
9cc28cc8 1484
eb383413
L
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
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
14972000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1498
1499 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1500
eb383413
L
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'.
ae7d06ad 1519
eb383413
L
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
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
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.
ae7d06ad 1557
f03aa80d
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
77bfb694
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
5c82d20a
ZW
15662000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1567
eb383413 1568 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
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
eb383413
L
15782000-05-23 Mike Stump <mrs@wrs.com>
1579
1580 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1581 -j3.
eb383413
L
1582
15832000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1584
1585 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1586
15872000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1588
ae7d06ad 1589 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1590 probably zero, also eliminate a warning on alpha.
1591
15922000-05-15 David Edelsohn <edelsohn@gnu.org>
1593
1594 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1595 on $(enable_shared).
1596
15972000-05-10 Jakub Jelinek <jakub@redhat.com>
1598
1599 * config.table: Use mh-sparcpic for sparc*-*-*.
1600
16012000-05-08 Nick Clifton <nickc@cygnus.com>
1602
1603 * Makefile.in (CFILES): Add strncmp.c.
1604 (NEEDED): Add strncmp.
1605
16062000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1607
eb383413
L
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
1612Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1613
1614 * sort.c (UCHAR_MAX): Provide fallback definition.
1615
16162000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1617
1618 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1619 SUBDIRS.
1620
eb383413
L
16212000-04-28 Kenneth Block <block@zk3.dec.com>
1622 Jason Merrill <jason@casey.cygnus.com>
1623
ae7d06ad
NC
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.
eb383413
L
1627
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
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
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
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
16552000-04-23 Mark Mitchell <mark@codesourcery.com>
1656
1657 * sort.c (sort_pointers): Fix endianness bugs.
1658
1659 * sort.c: New file.
1660 * Makefile.in (CFILES): Add sort.c
1661 (REQUIRED_OFILES): Add sort.o.
1662 (sort.o): New target.
1663
19be4303
JL
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
eb383413
L
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
16752000-04-16 Dave Pitts <dpitts@cozx.com>
1676
1677 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1678
afe36a78
RH
16792000-04-05 Richard Henderson <rth@cygnus.com>
1680
1681 * splay-tree.c (splay_tree_remove): New.
1682
eb383413
L
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.
ae7d06ad 1689
eb383413
L
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
b4fe2683
JM
1697Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1698
1699 * Makefile.in (partition.o): Depend on config.h
1700
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
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.
ae7d06ad 1718
b4fe2683
JM
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
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
08372f14
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
9c8ac5a9
ILT
17521999-07-21 Ian Lance Taylor <ian@zembu.com>
1753
1754 From Mark Elbrecht:
1755 * makefile.dos: Remove; obsolete.
8f36e47c 1756 * configure.bat: Remove; obsolete.
9c8ac5a9 1757
0c0a36a4
ILT
17581999-07-11 Ian Lance Taylor <ian@zembu.com>
1759
1760 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1761 warning.
1762
17632000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1764
1765 * pexecute.c: Conditionally include string.h.
b4fe2683 1766 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1767
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
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
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
1787Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1788
1789 * hashtab.c (sys/types.h): File included.
1790
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
1798Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1799
1800 * hashtab.c: Include stdio.h.
1801
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
1806Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1807
1808 * xstrdup (sys/types.h): Include this file.
1809
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
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
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
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.
b4fe2683 1845
0c0a36a4
ILT
18461999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1847
1848 * calloc.c: Add a public domain notice.
1849
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
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
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
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
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
18781999-10-02 Mark Mitchell <mark@codesourcery.com>
1879
1880 * xmalloc.c (xmalloc): Fix spelling error.
1881 (xcalloc, xrealloc): Likewise.
1882
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
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
1897Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1898
1899 * xmemdup.c: Include sys/types.h.
1900
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
1906Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1907
b4fe2683 1908 * config.table: Add openedition target.
0c0a36a4
ILT
1909 * config/mh-openedition: New file.
1910
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
19151999-08-31 Richard Henderson <rth@cygnus.com>
1916
1917 * getpwd.c: Check HAVE_GETCWD before defining it away.
1918
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
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
b4fe2683 1937 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1938 (main): Constify variable `valid_symbols'.
1939
1940Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1941
1942 * strtoul.c (strtoul): Add parentheses around && within ||.
1943
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
19491999-08-01 Mark Mitchell <mark@codesourcery.com>
1950
1951 * splay-tree.c (splay_tree_insert): Return the new node.
1952
35ca97ea
RH
19531999-07-14 Richard Henderson <rth@cygnus.com>
1954
b4fe2683 1955 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1956 prototyping directly.
1957 * choose-temp.c: Conditionally include string.h.
1958
0c0a36a4
ILT
19591999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1960
1961 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1962
af32ff69
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
0c0a36a4
ILT
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
19731999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1974
1975 * configure.in (checkfuncs): Add gettimeofday.
1976 * config.in, configure: Regenerated.
1977
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
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
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
1994Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1995
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
2002 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2003 bytes of space using malloc.
2004
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
20111999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2012
2013 * tmpnam.c (L_tmpnam): Fix typo.
2014
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
e9868447
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
33fbbfbc
RH
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
0c0a36a4
ILT
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
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
252b5132
RH
20461999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2047
2048 Fix from Dale Hawkins:
b4fe2683 2049 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
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
c1687039
ILT
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
0c0a36a4
ILT
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
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
252b5132
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
0c0a36a4
ILT
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
252b5132
RH
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
0c0a36a4
ILT
21011999-04-05 Tom Tromey <tromey@cygnus.com>
2102
2103 * testsuite/regress-demangle: New file.
2104 * testsuite/demangle-expected: New file.
252b5132 2105
0c0a36a4
ILT
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.
252b5132
RH
2117
21181999-04-02 Mark Mitchell <mark@codesourcery.com>
2119
2120 * splay-tree.h (splay_tree_compare_pointers): Define.
2121
21221999-03-30 Mark Mitchell <mark@codesourcery.com>
2123
2124 * splay-tree.c (splay_tree_compare_ints): Define.
2125
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
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.
b4fe2683 2140
252b5132
RH
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
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
2160Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2161
2162 * config.table: Check cygwin*, not cygwin32*.
2163
2164Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2165
2166 * Makefile.in: Change mkstemp -> mkstemps.
2167
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.
b4fe2683 2174
252b5132
RH
2175Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2176
b4fe2683 2177 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2178 platforms that don't have HZ.
2179 * getruntime.c (HZ): Likewise.
2180
2181Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2182
2183 * Makefile.in (xstrdup.o): Depend on config.h.
2184
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
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
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
22031998-12-30 Michael Meissner <meissner@cygnus.com>
2204
2205 * random.c (NULL): Don't redefine NULL if it is already defined.
2206
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.
2212
2213 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2214 (snarf_numeric_literal): Constify first parameter.
2215 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2216 int, not a char.
252b5132
RH
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
8aefe91a 2229 avoid ambiguous `else'.
252b5132
RH
2230
2231 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2232 `cstart' and `cend' to unsigned char. Cast the argument of macro
2233 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2234
2235 * objalloc.c (free): Add prototype.
2236
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
2241Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2242
2243 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2244 doesn't exist.
252b5132 2245 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2246
252b5132
RH
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
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.
2259
2260Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2261
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.
2268
2269 * mkstemp.c: Don't check IN_GCC anymore.
2270 * pexecute.c: Likewise.
2271 * splay-tree.c: Likewise.
2272
2273 * strchr.c (strchr): Use `const', not `CONST'.
2274 * strrchr.c (strrchr): Likewise.
2275 * strtol.c (strtol): Likewise.
2276 * strtoul.c (strtoul): Likewise.
2277
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
8aefe91a
DD
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.
252b5132 2294 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2295 function.
252b5132 2296 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2297 style for this case is the same as ARM.
252b5132
RH
2298 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2299 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
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.
252b5132 2303 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2304 include template args in string defining class.
252b5132
RH
2305 (demangle_class_name): use demangel_arm_hp_template.
2306 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
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.
252b5132 2310 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2311 styles. global destructor and constructor for HP style are same
2312 as for ARM style. Same for local variables.
252b5132
RH
2313 (demangle_qualified): handle EDG_DEMANGLING style.
2314 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
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.
252b5132 2322 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2323 value param for HP/aCC.
252b5132 2324 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2325 literal parameter for HP aCC.
252b5132
RH
2326 (recursively_demangle): new function
2327 (snarf_numeric_literal): new function.
2328 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2329 to message.
252b5132
RH
2330
2331Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2332
2333 * pexecute.c: Remove obsolete ifdefed cygwin code.
2334
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
23421998-11-25 Mike Stump <mrs@wrs.com>
2343
2344 * Makefile.in (splay-tree.o): Add config.h dependency.
2345
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
23501998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2351
b4fe2683 2352 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2353
2354Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2355
2356 * mpw.c (mpw_access): Add missing parens.
2357
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
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
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
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
23881998-11-08 Mark Mitchell <mark@markmitchell.com>
2389
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
2394 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2395 not internal_cplus_demangle.
2396
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
2403Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2404
b4fe2683
JM
2405 * configure.in: detect cygwin* instead of cygwin32*
2406 * configure: regenerate
252b5132
RH
2407
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
8aefe91a
DD
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.
252b5132
RH
2418
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
24241998-10-25 Mark Mitchell <mark@markmitchell.com>
2425
2426 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2427 anonymous namespaces.
2428
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.
2445
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
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
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
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
2494Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2495
b4fe2683
JM
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.
252b5132
RH
2499
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
2504Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2505
b4fe2683 2506 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2507
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
2512Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2513
2514 * Merge egcs & devo libiberty.
2515