merge from gcc
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
fcd7c7c9
DD
12003-02-13 Daniel Jacobowitz <drow@mvista.com>
2
3 Fix PR c++/7612.
4 * cplus-dem.c (demangle_signature): Call string_delete.
5 Remove extra string_init.
6 (demangle_arm_hp_template): Call string_delete instead of
7 string_clear. Add missing string_delete call.
8 (demangle_qualified): Add missing string_delete call.
9 (do_type): Remove unused variable btype. Add missing string_delete
10 call. Call string_delete instead of string_clear.
11 (demangle_fund_type): Move variable btype inside of the switch
12 statement. Add missing string_delete call.
13 (do_arg): Call string_delete instead of string_clear. Remove extra
14 string_init.
15 (demangle_nested_args): Free work->previous_argument.
16
073c427b
DD
172003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18
19 * acconfig.h: New file. Add uintptr_t.
20 * config.in: Regenerated.
21
f8bd3000
DD
222003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
23
24 * libiberty.texi: Update to GFDL 1.2.
25
85b9a938
DD
262003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
27
28 * Makefile.in (libiberty_topdir): New subst.
29 (mkinstalldirs): Redefine in terms of the above.
30 * configure.in: AC_SUBST it.
31 * configure: Regenerate.
32
578460f2
AO
332003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
34
35 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
36 (info-subdir, install-info-subdir, clean-info-subdir)
37 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
38 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
39 Pass $(FLAGS_TO_PASS).
40
7f285245
AO
412003-01-27 Alexandre Oliva <aoliva@redhat.com>
42
43 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
44 /`$$CC -print-multi-os-directory`.
45
5f9624e3
DJ
462003-01-26 Daniel Jacobowitz <drow@mvista.com>
47
48 * hashtab.c (htab_create_alloc_ex): New function.
49 (hatab_set_functions_ex): New function.
50 (htab_delete, htab_expand): Support alternate allocation functions.
51
9c2259b8
DD
522003-01-24 Christopher Faylor <cgf@redhat.com>
53
54 * configure.in: Remove special pex-cygwin consideration.
55 * configure: Regenerate.
56 * pex-cygwin.c: Remove.
57 * Makefile.in: Remove pex-cygwin.[co] lines.
58
5a17353c
DD
592003-01-24 Zack Weinberg <zack@codesourcery.com>
60
61 * Makefile.in (CFILES): Add pex-*.c.
62 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
63 (CONFIGURED_OFILES): Add pex-*.o.
64 (TEXIFILES): Add pexecute.txh.
65 (pexecute.o): Delete rule.
66 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
67 pex-unix.o, pex-win32.o): New rules.
68 * configure.in: Change AC_INIT argument to xmalloc.c.
69 Compute appropriate pexecute implementation and substitute it
70 as @pexecute@.
71
72 * pexecute.c: Split up into...
73 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
74 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
75 new files.
76
77 * functions.texi: Regenerate.
78 * configure: Regenerate.
79
eed2b28c
DD
802003-01-20 Josef Zlomek <zlomekj@suse.cz>
81
82 * hashtab.c (htab_expand): Fix allocation of new entries.
83
27a39a5f
DD
842003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
85
86 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
87
88 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
89 mkinstalldirs command.
90
b51c1553
DD
912002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
92
93 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
94 Define for hosts with HOST_EXECUTABLE_SUFFIX.
95
756954c3
DD
962002-11-24 Nick Clifton <nickc@redhat.com>
97
98 * make-relative-prefix.c (make_relative_prefix): Ensure return
99 string is empty before using strcat to construct it.
100
2a80c0a4
DD
1012002-11-22 Daniel Jacobowitz <drow@mvista.com>
102
103 * Makefile.in: Add make-relative-prefix.c.
104 * make-relative-prefix.c: New file.
105 * functions.texi: Rebuilt.
106
768b20d8
JJ
1072002-11-16 Jakub Jelinek <jakub@redhat.com>
108
109 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
110 used with arguments in traditional C' warnings.
111
f52d1d64
JJ
1122002-10-16 Jakub Jelinek <jakub@redhat.com>
113
114 * config.table: Use mh-s390pic for s390x too.
115
0d3deb8d
DD
1162002-10-06 Andreas Jaeger <aj@suse.de>
117
118 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
119 variable and of strict-aliasing warning.
120 (grow_vect): Use char as first parameter.
121
1b67de92
DD
1222002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
123
124 * Makefile.in (all): Fix multilib parallel build.
125
585cc78f
DD
1262002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
127
128 * cp-demangle.c (demangling_new): Cast 0 to enum.
129 (demangle_char): Cast return of strdup to char *.
130 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
131 (is_gnu_v3_mangled_dtor): Likewise.
132 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
133 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
134 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
135 * md5.c (md5_process_bytes): Cast results back to const void *.
136 (md5_process_block): Add cast to const md5_uint32 *.
137 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
138 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
139 unsigned short.
140 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
141 to void *.
142 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
143
e21b0cc1
NC
1442002-09-19 Nick Clifton <nickc@redhat.com>
145
146 * README: Update email addresses for bugs and patches.
147
a54ba43f
DD
1482002-09-10 Mike Stump <mrs@apple.com>
149
150 * splay-tree.c (splay_tree_successor): Fix comments.
151
1522002-09-11 Zack Weinberg <zack@codesourcery.com>
153
154 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
155 * testsuite/Makefile.in: Adjust for test-demangle.
156 * testsuite/regress-demangle: Deleted.
157 * testsuite/test-demangle.c: New file.
158 * testsuite/demangle-expected: Change \$ to $ throughout, now that
159 this file is not being read by a shell script.
160
01cea699
DD
1612002-09-05 Roger Sayle <roger@eyesopen.com>
162
163 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
164
a2832523
DD
1652002-08-07 DJ Delorie <dj@redhat.com>
166
167 * regex.c (re_error_msgid): Just use a simple array of strings.
168 (re_compile_pattern): Compensate.
169 (re_comp): Likewise.
170 (re_comp): Likewise.
171 (regerror): Likewise.
172
1e3f0be0
DD
1732002-07-29 Neil Booth <neil@daikokuya.co.uk>
174
175 * cplus-dem.c (PREPEND_BLANK): Remove.
176
b851d07b
DD
1772002-07-10 Jason Merrill <jason@redhat.com>
178
179 * cp-demangle.c (demangle_identifier): Support extended Unicode
180 characters.
181
2a9dffbf
DD
1822002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
183
184 * cp-demangle.c (demangle_v3_with_details): Wrap in
185 !defined IN_GLIBCPP_V3.
186
793011ca
DD
1872002-07-01 Mark Mitchell <mark@codesourcery.com>
188
189 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
190 Set it for the "st" operator.
191 (demangle_expression): Handle expressions with types as arguments.
192
b39b76b8
DD
1932002-06-30 Douglas Rupp <rupp@gnat.com>
194
195 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
196 * Makefile.in (OUTPUT_OPTION): Use.
197
4748c6d8
DD
1982002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
199
200 * Makefile.in (install_to_libdir): Add $(DESTDIR).
201 (install_to_tooldir): Likewise.
202
f9c3326a
DD
2032002-06-17 Douglas Rupp <rupp@gnat.com>
204
205 * lbasename.c: Add 2002 to copyright.
206 (IS_DIR_SEPARATOR): Remove VMS junk.
207
18893690
DD
2082002-06-05 Geoffrey Keating <geoffk@redhat.com>
209
210 * hashtab.c (htab_create): New stub function for backward
211 compatibility.
212 (htab_try_create): Likewise.
213
2142002-06-03 Geoffrey Keating <geoffk@redhat.com>
215
216 * hashtab.c (htab_create): Delete.
217 (htab_try_create): Delete.
218 (htab_create_alloc): New.
219 (htab_delete): Support user-specified memory allocation.
220 (htab_expand): Likewise.
221
2222002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
223
224 * configure.in: Fix typo in the code checking for sys_errlist.
225 * configure: Regenerated.
226
9296c8b2
DD
2272002-05-13 Andreas Schwab <schwab@suse.de>
228
229 * config.table: Use mh-x86pic also for x86-64.
230
52d98c2d
DD
2312002-05-08 Alexandre Oliva <aoliva@redhat.com>
232
233 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
234 script entry, and set LD to it when configuring multilibs.
235 * configure: Rebuilt.
236
cafa3917
DD
2372002-05-07 Mark Mitchell <mark@codesourcery.com>
238
239 * configure.in (AC_TYPE_PID_T): Use it.
240 * configure: Regenerated.
241 * getruntime.c: Include <sys/types.h>.
242 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
243
b1c933fc
RH
2442002-04-09 Richard Henderson <rth@redhat.com>
245
246 * hashtab.c (higher_prime_number): Use 7 as minimum.
247 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
248 (htab_find_slot_with_hash): Likewise.
249
0c4460bb
DD
2502002-04-01 Phil Edwards <pme@gcc.gnu.org>
251
252 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
253 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
254 not compile if IN_GLIBCPP_V3 defined.
255 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
256
f2160d2b
DD
2572002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
258
3ebf1f59 259 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
260 if it is NULL.
261
7dd4d42a
DD
2622002-03-27 DJ Delorie <dj@redhat.com>
263
264 * hex.c: Add documentation.
265 (_hex_value): Provide non-ASCII empty table.
266 (hex_init): Initialize the non-ASCII table.
267 * functions.texi: Regenerate.
268
38e57a35
DD
2692002-03-27 Mark Mitchell <mark@codesourcery.com>
270
271 * dyn-string.c: Add libgcc exception to copyright notice.
272
cfed0715
DD
2732002-03-26 H.J. Lu (hjl@gnu.org)
274
275 * config.table: Support --with-build-subdir.
276 * configure.in: Likewise.
277 * configure: Rebuild.
278
1504972f
DD
2792002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
280
281 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
282 seen.
283
35efcd67
DD
2842002-03-12 Mark Mitchell <mark@codesourcery.com>
285
286 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
287 notice.
288
dabc64ea
DD
2892002-03-11 Douglas B Rupp <rupp@gnat.com>
290
291 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
292
3ddbd84c
JB
2932002-03-06 Jim Blandy <jimb@redhat.com>
294
295 * splay-tree.c (splay_tree_xmalloc_allocate,
296 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
297 prototyped definitions. Mark `data' arguments as unused.
298
efdab807
AC
2992002-03-06 Andrew Cagney <ac131313@redhat.com>
300
301 * floatformat.c (floatformat_arm_ext_big): Delete definition.
302
50d4562d
DD
3032002-03-04 Phil Edwards <pme@gcc.gnu.org>
304
305 * configure.in: Add --enable-install-libiberty option.
306 * Makefile.in (INSTALLED_HEADERS): New variable.
307 (install_to_libdir): Possibly also copy headers.
308 * configure: Regenerated.
309
3102002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
311
312 * xmalloc.c (xmalloc_fail): Clarify error message further.
313
6e9980f5
DD
3142002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
315
316 * xmalloc.c (xmalloc_fail): Clarify error message.
317
18893690 3182002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
319
320 * splay-tree.c (splay_tree_xmalloc_allocate,
321 splay_tree_xmalloc_deallocate): New functions.
322 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
323 above functions and a dummy data pointer.
324 (splay_tree_new_with_allocator): New function.
325 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
326 splay_tree_remove): Use the splay tree's allocation and
327 deallocation functions.
328
59ea9fe7
DD
3292002-02-19 Scott Snyder <snyder@fnal.gov>
330
331 * testsuite/demangle-expected: Add test case for infinite loop in
332 demangler.
333 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
334 if do_type() doesn't make any progress --- prevents an infinite
335 loop.
336
6f848550
DD
3372002-02-18 Carlo Wood <carlo@gnu.org>
338
339 PR c++/5390
340 * cplus-dem.c (demangle_integral_value): Accept multi-digit
341 numbers that do not start with an underscore; This is needed
342 for integer template parameters. This doesn't break anything
343 because multi-digit numbers are never followed by a digit.
344 * testsuite/demangle-expected: Corrected all mangled test
345 cases with multi-digit template parameters: g++ 2.95.x does
346 not generate underscores around these parameters.
347
44354ae1
DD
3482002-02-05 Jason Merrill <jason@redhat.com>
349
350 * cplus-dem.c (flags): Add DMGL_VERBOSE
351 (cplus_demangle_v3_p): Remove.
352 (demangle_it): Add DMGL_TYPES to passed flags.
353 * cp-demangle.c (cplus_demangle_v3_all): Remove.
354 (cplus_demangle_v3_type): Remove.
355 (cplus_demangle_v3): Add options parm.
356
42da15d6
DD
3572002-02-02 H.J. Lu (hjl@gnu.org)
358
359 * cp-demangle.c (cp_demangle_type): Do not protect with
360 IN_LIBGCC2.
361 (cplus_demangle_v3_all): New.
362 (cplus_demangle_v3): Call cplus_demangle_v3_all.
363 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
364
365 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
366 Initialized to cplus_demangle_v3.
367 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
368 of cplus_demangle_v3.
369 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
370 command line symbol.
371
372 * testsuite/regress-demangle: Pass the mangled name at the
373 command line.
374
b117c158
DD
3752002-02-01 H.J. Lu <hjl@gnu.org>
376
377 * cp-demangle.c (cp_demangle_type): Call demangling_new with
378 DMGL_GNU_V3.
379
c78d91b1
DD
3802002-01-31 Phil Edwards <pme@gcc.gnu.org>
381
382 * cp-demangle.c: Revert yesterday's change.
383
bef8b55d
DD
3842002-01-31 Adam Megacz <adam@xwt.org>
385
386 * gcc/libiberty/configure.in: Treat mingw the same as cywin
387 wrt HAVE_SYS_ERRLIST.
388
2c955b8b
DD
3892002-01-30 Phil Edwards <pme@gcc.gnu.org>
390
391 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
392 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
393 cp_demangle_type.
394 * testsuite/demangle-expected: New gnu-v3 test.
395
58b1717a
RH
3962002-01-22 Momchil Velikov <velco@fadata.bg>
397
398 * configure.in (variable detection): Use arrays of unspecified
399 size instead of plain integers.
400
cc096b71
DD
4012002-01-18 DJ Delorie <dj@redhat.com>
402
403 * Makefile.in (TESTLIB): New. This library is for future
404 testsuites.
405 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
406 break down by letter.
407 (REQUIRED_OFILES): List long-to-compile files first.
408 (maint-deps): New, target for updating dependencies.
409 (dependencies): Update.
410 * maint-tool: Add dependency-generating option.
411 * configure.in: Check for _doprnt even if we're not providing it.
412 * configure: Regenerate.
413
414 * _doprnt.c: Modifications to allow compiling on any platform.
415 * copysign.c: Likewise.
416 * putenv.c: Likewise.
417 * setenv.c: Likewise.
418 * vsprintf.c: Likewise.
419
4202002-01-15 Douglas B Rupp <rupp@gnat.com>
421
422 * mkstemps.c (mkstemps): On VMS, open temp file with option
423 that causes it to be deleted when closed.
424
20d54542
DD
4252002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
426
c23795e2
DD
427 * cp-demangle.c (long_options): Const-ify.
428 * cplus-dem.c (long_options): Likewise.
429
20d54542
DD
430 * cplus-dem.c (mystrstr): Delete. All callers changed to use
431 strstr instead.
432
f348a7b1
DD
4332001-12-31 Ira Ruben <ira@apple.com>
434
435 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
436 * configure: Regenerated.
437
d86cd745
DD
4382001-12-24 Douglas B. Rupp <rupp@gnat.com>
439
440 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
441 * configure: Regenerated.
442
ae533646
DD
4432001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
444
445 PR other/2719
446 * cplus-dem.c (consume_count): Treat negative count as an error.
447 * testsuite/demangle-expected: Added testcase.
448
c0eb281b
DD
449Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
450
451 * configure.in: Hardcode that vfork works on VMS host.
452 * configure: Regenerated.
453
2da4c07f
RH
4542001-12-06 Richard Henderson <rth@redhat.com>
455
456 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
457 (cplus_demangle): Support no_demangling.
458
24acd898
DD
4592001-11-27 Zack Weinberg <zack@codesourcery.com>
460
461 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
462 in libiberty context. Fix typo in leading comment.
463 * configure.in: Fix various AC_DEFINEs so autoheader works.
464 If any of vprintf, vsprintf, vfprintf is missing from libc,
465 then AC_REPLACE_FUNCS(_doprnt).
466
fec50157 4672001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 468 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
469
470 * Makefile.in (stamp-h): Depend on Makefile for proper
471 serialization.
472 (*-subdir): Depend on config.h for proper serialization.
473
5527febf
DD
4742001-11-26 DJ Delorie <dj@redhat.com>
475
476 * configure.in: Check for alloca.h (for regex.c and putenv.c).
477 * configure: Regenerate.
478 * config.h: Add HAVE_ALLOCA_H.
479
941d74a0
DD
4802001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
481
482 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
483 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
484 is available.
485
dc579051
DD
486Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
487
488 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
489 * configure.in (HAVE_UINTPTR_T): Test for system defining
490 uintptr_t and define HAVE_UINTPTR_T appropriately.
491 * regex.c (uintptr_t): Do not provide a definition if the
492 system provided one.
493
494 * regex.c (PREFIX): Provide an alternate definition for
495 non-ANSI/ISO compilers.
496 (ARG_PREFIX): Likewise.
497
1a78a35a
DD
4982001-11-12 Jim Meyering <meyering@lucent.com>
499
500 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
501 this code would end up calling gettext even in packages built
502 with --disable-nls.
503 * getopt.c (_): Likewise.
504 * regex.c (_): Likewise.
505
4e55c4b6
DD
5062001-11-03 Alan Modra <amodra@bigpond.net.au>
507
508 * configure.in: Cope with missing makeinfo.
509 * configure: Regenerate.
510
d311a83a
DD
5112001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
512
513 * hex.c (hex_init): Provide empty stub.
514
515 * hex.c (hex_init): Delete.
516 (_hex_value): Const-ify and initialize at compile-time.
517
3bc62f91
DD
5182001-10-19 H.J. Lu <hjl@gnu.org>
519
520 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
521 necessary.
522
5d852400
DD
5232001-10-17 DJ Delorie <dj@redhat.com>
524
525 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
526 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 527 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
528 Improve manual formatting.
529 * functions.texi: Regenerate.
530
ba19b94f
DD
5312001-10-15 DJ Delorie <dj@redhat.com>
532
533 * Makefile.in (TEXIFILES): Add fnmatch.txh.
534 (maint-undoc): New.
535 maint-tool: Add "undoc" tool.
536 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
537 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
538 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
539 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
540 documentation.
541 * fnmatch.txh: New.
542 * functions.texi: Regenerate.
543
56056af5
DD
5442001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
545
546 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
547 * strtod.c: Use "ISO C" instead of "ANSI C".
548 * functions.texi: Regenerate.
549
99b58139
DD
5502001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
551
552 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
553 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
554 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
555 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
556 spelling. Give names to function arguments in documentation. Use
557 (void) prototypes in documentation.
558 * functions.texi: Regenerate.
559
e6450fe5
DD
5602001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
561
562 * argv.c (buildargv, tests, main): Const-ify.
563 * cp-demangle.c (operator_code): Likewise.
564 * cplus-dem.c (optable, libiberty_demanglers,
565 cplus_demangle_set_style, cplus_demangle_name_to_style,
566 print_demangler_list): Likewise.
567 * hashtab.c (higher_prime_number): Likewise.
568 * strcasecmp.c (charmap): Likewise.
569 * strerror.c (error_info, strerror, main): Likewise.
570 * strncasecmp.c (charmap): Likewise.
571 * strsignal.c (signal_info): Likewise.
572
da191b5b
DD
5732001-09-29 DJ Delorie <dj@redhat.com>
574
575 * configure: Regenerate.
576
916aaa12
DD
5772001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
578
579 * concat.c: Include stdlib.h.
580
fa9f0e33
DD
5812001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
582
583 * libiberty.texi: (Top level): Add syncodeindex pg. Add
584 @dircategory and @direntry directives. Add @finalout.
585 (many nodes): Lose the next,prev,up pointers on the @nide line.
586 (Using, Supplemental Functions, Replacement Functions): Fix
587 markup.
588 (Functions): Move around, to allow makeinfo to build the manual
589 without next,prev,up pointers in thye node lines.
590 (Licenses): Fix typos.
591
592 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
593 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
594 * functions.texi: Regenerate.
595
596 * copying-lib.texi: Lose the next,prev,up pointers on the @node
597 line.
598
5992001-09-27 DJ Delorie <dj@redhat.com>
600
601 * configure.in: Don't use in-tree texinfo, because libiberty must
602 be built before it. Check for makeinfo version 4 or higher.
603 * functions.texi: Regenerate.
604
39423523
DD
6052001-09-20 DJ Delorie <dj@redhat.com>
606 Phil Edwards <pedwards@disaster.jaj.com>
607
608 * configure.in (MAKEINFO, PERL): Detect these.
609 (--enable-maintainer-mode): Add.
610 * configure: Regenerate.
611 * Makefile.in (MAKEINFO, PERL): Define.
612 (libiberty.info, libiberty.dvi, libiberty.html): New.
613 (CFILES): Add bsearch.c.
614 (CONFIGURED_OFILES): New, list of objects configure might add.
615 (maint-missing, maint-buildall): New, for maintainers only.
616 (clean, mostlyclean): Add info/dvi/html files.
617 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
618 * gather-docs: New, for maintainers.
619 * maint-tool: New, for maintainers.
620 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
621 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
622 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
623 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
624 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
625 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
626 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
627 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
628 documentation.
629
66c94e19
DD
6302001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
631
632 * concat.c (reconcat): Fix for traditional C.
633
99ee3a8f
DD
6342001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
635
636 * concat.c (reconcat): New function.
637
54c20242
DD
6382001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
639
640 * concat.c (vconcat_length, vconcat_copy, concat_length,
641 concat_copy, concat_copy2): New functions.
642 (concat): Use vconcat_length/vconcat_copy.
643
644 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
645 Define.
646
843f21be
DD
6472001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
648
649 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
650 VA_FIXEDARG & VA_CLOSE.
651
652 * vasprintf.c: Check HAVE_STRING_H when including string.h.
653 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
654 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
655
8a423cb3
DD
6562001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
657
658 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
659
dc676635
DD
6602001-08-23 Ulrich Drepper <drepper@redhat.com>
661
662 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
663
6642001-08-23 Ulrich Drepper <drepper@redhat.com>
665
666 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
667 instead of mbrtowc.
668 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
669 wcslen, and __wcscoll instead of wcscoll.
670
f080c76d
DD
6712001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
672
3ebf1f59
DD
673 * fibheap.c (fibheap_init, fibnode_init): Remove.
674 (fibheap_new, fibnode_new): Use xcalloc to allocate and
675 initialize memory.
676 (fibheap_insert): Remove check for node allocation failure.
f080c76d 677
f01b59ed
DD
6782001-08-21 Richard Henderson <rth@redhat.com>
679
680 * Makefile.in (fibheap.o): Depend on config.h.
681 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
682 functions for inlining.
683
684Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
685
686 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
687 hosting on cygwin.
688 * configure: Regenerate.
689
eb828599
AC
6902001-08-20 Andrew Cagney <ac131313@redhat.com>
691
692 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
693 HARRIS_FLOAT_FORMAT.
694 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
695 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
696 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
697 (floatformat_m88110_harris_ext): New float formats.
698
4e55c4b6
DD
6992001-08-20 Daniel Berlin <dan@cgsoftware.com>
700
701 * fibheap.c: New file. Fibonacci heap.
702
703 * Makefile.in (CFILES): Add fibheap.c.
704 (REQUIRED_OFILES): Add fibheap.o.
705 (fibheap.o): Add dependencies for fibheap.o.
706
68a41de7
DD
7072001-08-17 Christopher Faylor <cgf@cygnus.com>
708
709 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
710 * configure: Regenerate.
711
8fc34799
DD
7122001-08-16 Richard Henderson <rth@redhat.com>
713
714 * hashtab.c (htab_hash_string): New.
715
16bad250
AC
7162001-08-13 Andrew Cagney <ac131313@redhat.com>
717
718 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
719 name.
720
a9022147
DD
7212001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
722
723 * regex.c (wcs_regex_compile): Use appropriate string
724 to compare with collating element.
725 Fix the padding for the alignment.
726
8aefe91a 7272001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
728
729 * lbasename.c (lbasename): Change function definition to return a
730 const char pointer.
731
e7e9b069
DD
7322001-08-07 Jason Merrill <jason_merrill@redhat.com>
733
734 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
735 for".
736
cc5144f8
DD
7372001-08-03 Richard Henderson <rth@redhat.com>
738
739 * Makefile.in (concat.o): Depend on config.h.
740
8aefe91a
DD
7412001-07-30 Andreas Jaeger <aj@suse.de>
742
743 * concat.c: Include "config.h".
744
86710ce2
DD
7452001-07-30 Andreas Jaeger <aj@suse.de>
746
747 * regex.c: Declare wcs functions only if compiling with
748 MBS_SUPPORT.
749 Don't use #elif for traditional C.
750
7512001-07-23 Ulrich Drepper <drepper@redhat.com>
752
753 * regex.c: Revamp memory allocation for WCHAR functions to
754 not use too much stack.
755
7562001-07-30 Andreas Jaeger <aj@suse.de>
757
758 * regex.c: Declare wcs functions only if compiling with
759 MBS_SUPPORT.
760 Don't use #elif for traditional C.
761
a5d8f731
DD
7622001-07-25 Daniel Jacobowitz <drow@mvista.com>
763
764 * Makefile.in (regex.o): Add dependency on config.h.
765
6ad8a379
DD
7662001-07-18 Andreas Schwab <schwab@suse.de>
767
768 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
769 underscore character.
770
7712001-07-18 Ulrich Drepper <drepper@redhat.com>
772
773 * regex.c: Limit string length printed in debug messages to 100
774 chars.
775
7762001-07-18 Andreas Jaeger <aj@suse.de>
777
778 * regex.c: Place under LGPL version 2.1.
779
2a6ef469
DD
7802001-07-10 Jeff Johnston <jjohnstn@redhat.com>
781
782 * Makefile.in: Add support for regex code.
783 * regex.c: New file.
784
7b78baae
DD
7852001-07-05 Mark Klein <mklein@dis.com>
786
787 * Makefile.in: Add ffs.c dependency.
788 * configure.in: Add ffs.c.
789 * ffs.c: New file.
790
926150e2
DD
7912001-06-18 Richard Henderson <rth@redhat.com>
792
793 * concat.c: Include <sys/types.h>.
794
11f6f21d
DD
7952001-06-11 Loren J. Rittle <ljrittle@acm.org>
796
797 bootstrap/3106
798 * strerror.c (sys_nerr): Hide the OS header version.
799 * strsignal.c (sys_nsig): Likewise.
800
d42dae6c
DD
8012001-06-10 Richard Henderson <rth@redhat.com>
802
803 * concat.c: Include string.h. Fix int vs size_t usage.
804 Simplify the iteration loops. Use memcpy.
805
e05c6d27
DD
8062001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
807
808 * partition.c: Fix misspelling of `implementation'.
809
b50c4073
DD
8102001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
811
812 * md5.c (md5_init_ctx): Declare constants as unsigned.
813 (md5_process_block): Likewise.
814
457161bf
DD
8152001-05-07 Zack Weinberg <zackw@stanford.edu>
816
817 * cp-demangle.c (demangle_v3_with_details,
818 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
819 function definition.
820 * ternary.c: Use K+R style function definitions. Use PTR, not
821 void *. Make arguments constant where possible.
822
e00bc6a7
DD
8232001-05-07 Mark Mitchell <mark@codesourcery.com>
824
825 * splay-tree.h (splay_tree_max): New function.
826 (splay_tree_min): Likewise.
827
400ee7e1
DB
8282001-04-15 Daniel Berlin <dan@cgsoftware.com>
829
830 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
831
832 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 833
d9697354
DD
8342001-04-03 Zack Weinberg <zackw@stanford.edu>
835
836 * make-temp-file.c (try): Inline.
837
a7bf099b
DD
8382001-02-28 Richard Henderson <rth@redhat.com>
839
840 * Makefile.in (make-temp-file.o): Depend on config.h.
841
30a1def2
DD
8422001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
843
844 * memchr.c (memchr): Adjust condition to avoid infinite loop.
845
079c672a
DD
8462001-03-23 Jakub Jelinek <jakub@redhat.com>
847
848 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
849 `_' not followed by a digit is invalid.
850
a88e356a
JB
8512001-03-22 Jim Blandy <jimb@redhat.com>
852
853 * cp-demangle.c (string_list_delete): Use dyn_string_delete
854 instead of free, to free the contents as well as the string
855 structure.
856
1dffcc66
DD
8572001-03-21 Zack Weinberg <zackw@stanford.edu>
858
859 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
860 Don't default P_tmpdir to anything. Try /var/tmp before
861 /usr/tmp.
862
8632001-03-20 Zack Weinberg <zackw@stanford.edu>
864
865 * choose-temp.c: Split off make_temp_file, and the code
866 duplicated between it and choose_temp_base, into...
867 * make-temp-file.c: ... here; new file.
868
869 * Makefile.in (CFILES): Add make-temp-file.c.
870 (REQUIRED_OFILES): Add make-temp-file.o.
871
e61231f1
JB
8722001-03-20 Jim Blandy <jimb@redhat.com>
873
874 * cp-demangle.c (struct demangling_def): New fields:
875 is_constructor and is_destructor.
876 (demangling_new): Initialize them.
877 (demangle_ctor_dtor_name): Set them, if we detect a constructor
878 or destructor.
879 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
880 is_gnu_v3_mangled_dtor): New functions.
881
a9cbbe6d
DD
8822001-03-20 Jason Merrill <jason@redhat.com>
883
884 * cplus-dem.c (main): Skip initial $.
885
b1e51b3c
DD
8862001-03-15 Michael Meissner <meissner@redhat.com>
887
888 * hashtab.c (higher_prime_number): Silence warning that 4294967291
889 might be a signed integer under pre-ISO C systems.
890
8aa30e60 8912001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 892 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 893
8aa30e60
DD
894 * libiberty/lbasename.c: New file.
895 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 896
30673bf5
DD
8972001-03-06 Zack Weinberg <zackw@stanford.edu>
898
899 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
900 * configure.in: Replace all alloca logic with a simple use of
901 the above new macro.
902 * config.table: Kill *-*-beos* entry.
903 * config/mh-beos: Delete.
904 * configure, config.in: Regenerate.
fa03f0a7 905
30673bf5
DD
906 * Makefile.in (ALLOCA, HFILES): Kill.
907 (REQUIRED_OFILES): Add alloca.o.
908 (alloca.o): Depend on libiberty.h.
909 (argv.o): Don't depend on alloca-conf.h.
910 * alloca-conf.h: Delete.
911 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
912 blocks. Provide the C alloca unconditionally. Use PTR where
913 appropriate. Make i00afunc static.
914 * argv.c: Don't include alloca-conf.h.
fa03f0a7 915
5810f394
DD
9162001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
917
918 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 919
a9db032a
DD
9202001-02-16 Loren J. Rittle <ljrittle@acm.org>
921
922 * cplus-dem.c (main): Initialize style.
fa03f0a7 923
8aefe91a
DD
9242001-02-02 Phil Edwards <pme@sources.redhat.com>
925
926 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
927
bc9bf259
DD
9282001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
929
930 Add support for Java demangling under the v3 ABI:
931 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
932 (struct demangling_def): Add `style' field.
933 (demangling_new): New parameter `style'. Set it in demangling_t.
934 (demangle_prefix): Use NAMESPACE_SEPARATOR.
935 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
936 (cp_demangle): New parameter `style'. Pass it to demangling_new().
937 (main): Call cp_demangle with extra parameter.
938 (java_demangle_v3): New function.
939 (java_builtin_type_names): New. Table of primitive type names used
940 for Java demangling.
941 (demangle_builtin_type): Look up in java_builtin_type_names if doing
942 Java output.
943 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
944 demangling.
945 (long_options): Remove obsolete `java' option.
946 (main): Remove explicit handling of `java' option. Instead, pass style
947 parameter in cplus_demangle flags as gdb does.
948 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 949
f6528837
DD
9502000-12-29 DJ Delorie <dj@redhat.com>
951
952 * fnmatch.c: Make the note about the origins of this file more
953 accurate, at least until we can sync with glibc.
954 * getopt.c: Ditto.
955 * getopt1.c: Ditto.
956 * md5.c: Ditto.
957 * obstack.c: Ditto.
9d969b59 958
c6da642e
DD
9592000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
960
961 * bsearch.c: New file.
962 * configure.in (funcs): Add bsearch.
963 (AC_CHECK_FUNCS): Likewise.
964 * configure, config.in: Regenerate.
965
ae7d06ad 9662000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
967
968 * safe-ctype.c: #include "ansidecl.h".
969 * strtod.c: Likewise.
970
ae7d06ad 9712000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
972
973 * strtoul.c: Include safe-ctype.h, not ctype.h.
974
ac424eb3
DD
9752000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
976
977 * safe-ctype.c: New file.
978 * Makefile.in (CFILES): Add safe-ctype.c.
979 (REQUIRED_OFILES): Add safe-ctype.o.
980
981 * argv.c: Define ISBLANK and use it, not isspace.
982 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
983 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
984 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
985 before calling TOLOWER(c)/TOUPPER(c).
986
4415a860
DD
9872000-12-07 Mike Stump <mrs@wrs.com>
988
989 * Makefile.in (distclean): When cleaning, remove testsuite.
990
849ee224
DD
9912000-12-05 Jason Merrill <jason@redhat.com>
992
993 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
994 name before allocating the dyn_string.
995
ae7d06ad 9962000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
997
998 * cp-demangle.c: s/new_abi/v3/.
999 * cplus-dem.c: Likewise.
1000 (current_demangling_style): Now auto_demangling.
1001 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1002 (main): Use standard symbol chars for auto_demangling.
e49a569c 1003
ae7d06ad 10042000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1005
1006 * hashtab.c (higher_prime_number): Use a table, rather than a
1007 seive, to find the next prime.
ae7d06ad
NC
1008
10092000-11-22 H.J. Lu <hjl@gnu.org>
1010
1011 * cplus-dem.c (main): Handle gnat_demangling.
1012
10132000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1014
1015 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1016 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1017 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1018 argument form of AC_DEFINE in dummy definitions block. Use
1019 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1020 in dummy block. Preload cache variables instead of bypassing
1021 tests, where possible.
1022 * acconfig.h: Removed.
ae7d06ad 1023
2ea7befd
DD
1024 * xmalloc.c (xmalloc_failed): New function, does error
1025 reporting on failed allocation.
1026 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1027
f1775526
HPN
10282000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1029
1030 * cplus-dem.c (cplus_demangle): Fix formatting.
1031 (grow_vect): Ditto.
1032 (ada_demangle): Ditto.
1033 (internal_cplus_demangle): Ditto.
1034 (mop_up): Ditto.
1035
10362000-11-21 H.J. Lu <hjl@gnu.org>
1037
1038 * cplus-dem.c (main): Handle java_demangling.
1039
ae7d06ad 10402000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1041
1042 * cplus-dem.c (grow_vect): Prototype.
1043 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1044
5dd42ef4
HPN
10452000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1046
1047 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1048 parameter `option'.
1049
296731c1
DD
10502000-11-15 Kenneth Block <kenneth.block@compaq.com>
1051
8944fb9d 1052 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1053 be used in GCC.
1054
6e53a714 10552000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1056
5dd42ef4 1057 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1058 list.
1059
99a4c1bd
HPN
10602000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1061
1062 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1063 xcalloc depending on htab->return_allocation_failure. Return zero
1064 if calloc fails.
99a4c1bd
HPN
1065 (htab_create): Update comment to cover memory allocation.
1066 (htab_try_create): New.
1067 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1068 Update comment to cover this.
99a4c1bd 1069
e0f3df8f
HPN
10702000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1071
1072 * hashtab.c: Change void * to PTR where necessary.
1073 (htab_create, htab_expand): Correct formatting of comment before
1074 function.
1075
ae7d06ad 10762000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1077
1078 * cp-demangle.c (string_list_def): Add caret_position and comments.
1079 (result_caret_pos): New macro.
1080 (result_append_string): Rename to...
1081 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1082 Rename throughout.
59666b35
DD
1083 (result_append): Rename to...
1084 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1085 throughout.
59666b35
DD
1086 (result_append_char): Rename to...
1087 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1088 throughout.
59666b35
DD
1089 (result_append_space): Remove.
1090 (string_list_new): Initialize caret position.
1091 (result_add_separated_char): Use caret position.
1092 (result_get_caret): New funtion.
1093 (result_set_caret): Likewise.
1094 (result_shift_caret): Likewise.
1095 (result_previous_char_is_space): Likewise.
1096 (substitution_start): Use caret position.
1097 (substitution_add): Likewise.
1098 (demangling_new): Initialize caret position.
1099 (demangle_encoding): Use caret position.
ae7d06ad 1100 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1101 (demangle_type_ptr): Use switch statement. Handle pointers to
1102 arrays. Don't use result_append_space. Use caret position.
1103 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1104 call to demangle_array_type.
1105 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1106
ae7d06ad 11072000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1108
1109 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1110
11112000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1112
1113 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1114
11152000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1116
1117 * splay-tree.c: #include <stdio.h>.
1118
11192000-09-14 Hans-Peter Nilsson <hp@axis.com>
1120
1121 * testsuite/demangle-expected: Add two tests for anonymous
1122 namespaces.
1123 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1124
11252000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1126
1127 * splay-tree.c (splay_tree_predecessor): New function.
1128 (splay_tree_successor): Likewise.
ae7d06ad
NC
1129
11302000-09-10 Hans-Peter Nilsson <hp@axis.com>
1131
1132 * testsuite/demangle-expected: Add four tests for type_info
1133 mangling.
1134 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1135 for a non-template non-qualified type_info function or node.
1136
11372000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1138
1139 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1140
11412000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1142
1143 * md5.c: #include "ansidecl.h".
1144
11452000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1146
1147 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1148 (demangle_type): Handle substitution candidates correctly in the
1149 face of special substitutions.
ae7d06ad
NC
1150
11512000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1152
1153 * cp-demangle.c (demangle_encoding): Rename variable.
1154 (demangle_name): Rename parameter. Handle return type
1155 suppression.
1156 (demangle_nested_name): Rename parameter.
1157 (demangle_prefix): Likewise. Change return type suppression.
1158 (demangle_unqualified_name): Add parameter. Flag constructors and
1159 conversion operators.
1160 (demangle_special_name): Fix comment.
1161 (demangle_type): Rename variable.
1162 (demangle_bare_function_type): Check for missing return type and
1163 parameter.
1164 (demangle_class_enum_type): Rename parameter.
1165 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1166
11672000-08-31 DJ Delorie <dj@redhat.com>
1168
1169 * configure.in (Cygwin): special case cygwin only when we're
1170 building cygwin, not when we're hosting cygwin.
1171
11722000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1173
1174 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1175 <expression>.
ae7d06ad
NC
1176
11772000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1178
1179 * cp-demangle.c (demangle_type_ptr): Increment position past
1180 pointer and reference characters.
ae7d06ad
NC
1181
11822000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1183
1184 * cp-demangle.c (demangle_nv_offset): New function.
1185 (demangle_v_offset): Likewise.
1186 (demangle_call_offset): Likewise.
1187 (demangle_special_name): Update thunk demangling to comply with
1188 ABI changes.
ae7d06ad
NC
1189
11902000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1191
1192 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1193 (substitution_def): Remove template_parm_number.
1194 (NOT_TEMPLATE_PARM): Remove.
1195 (result_insert_string): New macro.
1196 (result_insert): Likewise.
1197 (result_insert_char): Likewise.
1198 (substitution_add): Remove last parameter. Don't store template
1199 parm number.
1200 (BFT_NO_RETURN_TYPE): Define as NULL.
1201 (demangle_encoding): Adjust call to demangle_bare_function_type.
1202 (demangle_name): Adjust substitution. Adjust call to
1203 substitution_add.
1204 (demangle_prefix): Adjust call to substitution_add.
1205 (demangle_identifier): Handle anonymous namespaces.
1206 (demangle_operator_name): Change demangling of vendor-extended
1207 operator to match ABI changes.
1208 (demangle_type_ptr): Change parameters. Make recursive. Handle
1209 substitutions here.
1210 (demangle_type): Adjust calls to demangle_template_param,
1211 substitution_add, and demangle_type_ptr. Fix substitution of
1212 templated types.
1213 (demangle_function_type): Change parameter to a pointer.
1214 (demangle_bare_function_type): Likewise. Adjust insertion point.
1215 (demangle_template_param): Remove last parameter.
1216 (demangle_expr_primary): Remove unused variable. Adjust call to
1217 demangle_template_param.
1218 (is_mangled_char): Accept `$' and `.'.
1219 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1220 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1221
12222000-08-31 Hans-Peter Nilsson <hp@axis.com>
1223
1224 * testsuite/demangle-expected: Add nine tests for
1225 underscore-after-number followed by five tests for name-signature
1226 delimiter.
1227
12282000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1229
1230 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1231
12322000-08-28 Jason Merrill <jason@redhat.com>
1233
1234 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1235 (CFILES): Add md5.c.
1236 * md5.c: New file.
1237
12382000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1239
1240 * cp-demangle.c (demangle_name): Initialize template_p in local
1241 name case. Don't re-add substitutions as candidates.
1242 (demangle_nested_name): Use <unqualified-name>.
1243 (demangle_prefix): Likewise. Don't add template names as
1244 substitution candidates twice, or re-add a substitution or the
1245 last prefix component.
1246 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1247
12482000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1249
1250 * cp-demangle.c (result_add_separated_char): Change parameter to
1251 int.
1252 (substitution_add): Don't check for duplicates. Check if
1253 previously allocated size is zero.
1254 (demangle_name): Remove duplicate check for std substitution.
1255 Clear template flag appropriately.
1256 (demangle_prefix): Remove argument to demangle_substitution.
1257 Don't check that template flag is already set.
1258 (demangle_operator_name): Add pt operator.
1259 (demangle_type): Don't treat r as built-in type. Remove argument
1260 to demangle_substitution. Fix substitution candidate mechanics.
1261 Handle <template-template-parm>s. Improve comments.
1262 (demangle_template_param): Don't handle template arg lists here.
1263 (demangle_substitution): Remove parameter.
1264 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1265
12662000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1267
1268 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1269
12702000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1271
1272 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1273 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1274 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1275
12762000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1277
1278 * cp-demangle.c (result_close_template_list): Remove function.
1279 (result_add_separated_char): New function.
1280 (result_open_template_list): New macro.
1281 (result_close_template_list): Likewise.
1282 (demangle_prefix): Don't set template_p if the
1283 prefix ends with a ctor name.
1284 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1285 (demangle_type): Check for template args after substitution.
1286 (demangle_template_args): Use result_open_template_list.
d3e85005 1287
ae7d06ad 12882000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1289
ae7d06ad 1290 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1291
ae7d06ad 12922000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1293
1294 * config/mh-openedition.h: Added -DLE370 definition.
1295
a9f34fb6
JL
12962000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1297
1298 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1299 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1300 Cast program to 'char *' in errmsg_arg assignment.
1301 (PWAIT_ERROR): Define.
1302 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1303 to DJGPP's WIF* macros.
1304
90aaccd1 13052000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1306 Jeff Law <law@cygnus.com>
90aaccd1 1307
ae7d06ad 1308 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1309
90aaccd1 1310 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1311 * rename.c: Include config.h, unistd.h
1312 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1313
6ef554e3
HPN
13142000-07-24 Hans-Peter Nilsson <hp@axis.com>
1315
1316 * cplus-dem.c (work_stuff_copy_to_from): New.
1317 (delete_non_B_K_work_stuff): New.
1318 (delete_work_stuff): New.
1319 (mop_up): Break out work_stuff partly destruction to
1320 delete_non_B_K_work_stuff.
1321 (iterate_demangle_function): New.
1322 (demangle_prefix): Call iterate_demangle_function instead of
1323 demangle_function_name. Leave handling of name-signature
1324 __-delimiters to iterate_demangle_function.
1325 (demangle_integral_value): Strip an optional
1326 following underscore cautiously. Handle negative numbers.
1327
ae7d06ad 13282000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1329
ae7d06ad 1330 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1331 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1332
ae7d06ad
NC
13332000-07-21 Alex Samuel <samuel@codesourcery.com>
1334
1335 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1336 allocating ctor mangling.
1337 (demangle_array_type): Handle empty and non-constant array length.
1338
b1233257 13392000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1340 Jeff Law <law@cygnus.com>
1341
1342 * configure.in (AC_CHECK_HEADERS): Add time.h.
1343 (AC_HEADER_TIME): Add check.
1344 * configure, config.in: Regenerate.
1345 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1346
1347 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1348 * configure, config.in: Regenerate.
1349 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1350 * strtol.c, strtoul.c: #include "config.h". Portably #include
1351 <limits.h> and/or <sys/param.h>.
1352 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1353
7d3ffcaf
JL
1354 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1355 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1356 * configure, config.in: Regenerate.
1357 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1358
b1233257
JL
1359 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1360
ae7d06ad
NC
13612000-07-21 Mike Stump <mrs@wrs.com>
1362
1363 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1364 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1365
13662000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1367
1368 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1369
1370 * setenv.c (setenv): Initialize variable `ep'.
1371
1372 * sigsetmask.c (abort): Prototype.
1373
1374 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1375 __STDC__ for stdarg.h include.
1376 (int_vasprintf): Prototype.
1377 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1378 definition. Cast `global_total_width' in comparison.
1379 (main): Prototype. Return a value.
1380
1381 * vfork.c (fork): Prototype.
1382
1383 * xexit.c: Include config.h.
1384
9adf30b2
JL
13852000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1386
1387 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1388 and print it with %u.
1389
2ed78d1b
HPN
13902000-07-17 Hans-Peter Nilsson <hp@axis.com>
1391
1392 * testsuite/regress-demangle (failed test): Show result and
1393 expected output.
1394
0473bdf7
AH
13952000-07-07 Andrew Haley <aph@cygnus.com>
1396
1397 * cplus-dem.c (main): fflush() after emitting last char before
1398 waiting for input.
1399
03d5f569
JM
14002000-06-28 Alex Samuel <samuel@codesourcery.com>
1401
1402 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1403 (demangle_name): Handle <substitution> followed by
1404 <unqualified-template-name>.
1405 (demangle_type): Follow special substitutions with
1406 <class-enum-type>
1407 (demangle_subtitution): Set template_p for special substitutions.
1408 (main): Fix typos.
ae7d06ad 1409
03d5f569
JM
14102000-06-27 Alex Samuel <samuel@codesourcery.com>
1411
1412 * cp-demangle.c (demangle_special_name): Swap base and derived
1413 class when demangling construction vtables.
1414
14152000-06-21 Alex Samuel <samuel@codesourcery.com>
1416
1417 * cp-demangle.c: Don't include ctype.h.
1418 (IS_DIGIT): New macro.
1419 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1420 instead of isdigit and isalpanum.
1421 (demangling_def): Make name and next const pointers.
1422 (STATUS_ALLOCATION_FAILED): New status code.
1423 (dyn_string_append_space): Handle failure in
1424 dyn_string_append_char.
1425 (int_to_dyn_string): Likewise. Change return value to status_t.
1426 (string_list_new): Handle failure of dyn_string_init.
1427 (result_close_template_list): Change return type to status_t.
1428 Handle failure in dyn_string_append.
1429 (result_push): Change return value to status_t. Handle failure in
1430 string_list_new. Handle failure of result_push throughout.
1431 (substitution_add): Change return value to status_t. Handle
1432 dyn_string failures. Handle failure of substitution_add
1433 throughout.
1434 (template_arg_list_new): Return NULL on allocation failure.
1435 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1436 Handle error result throughout.
1437 (result_append): Likewise.
1438 (result_append_char): Likewise.
1439 (result_append_space): Likewise.
1440 (demangling_new): Make argument a const pointer. Handle
1441 allocation failures.
1442 (demangle_template_args): Handle failure in template_arg_list_new
1443 and result_close_template_list.
1444 (demangle_discriminator): Return if int_to_dyn_string fails.
1445 (cp_demangle): Likewise.
1446 (cp_demangle_type): New function.
1447 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1448 memory allocation failure.
1449 (main): Likewise.
1450 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1451 IN_LIBGCC2.
1452 (dyn_string_init): Change return value to int. Handle
1453 RETURN_ON_ALLOCATION_FAILURE case.
1454 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1455 (dyn_string_release): Delete the dyn_string.
1456 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1457 (dyn_string_copy): Change return type to int.
1458 (dyn_string_copy_cstr): Likewise.
1459 (dyn_string_prepend): Likewise.
1460 (dyn_string_prepend_cstr): Likewise.
1461 (dyn_string_insert): Likewise.
1462 (dyn_string_insert_cstr): Likewise.
1463 (dyn_string_append): Likewise.
1464 (dyn_string_append_cstr): Likewise.
1465 (dyn_string_append_char): Likewise.
1466 (dyn_string_substring): Likewise.
ae7d06ad 1467
eb383413 14682000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1469
eb383413
L
1470 * cp-demangle.c (demangle_operator_name): Add spaces before
1471 names beginning with a letter: delete, delete[], new, new[],
1472 sizeof.
1473 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1474
eb383413
L
1475Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1476
1477 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1478
1479Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1480
1481 * cp-demangle.c (stdio.h): File included unconditionaly.
1482 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1483 * dyn-string.c (stdio.h): File included.
1484 * partition.c (partition_print): No `&' needed to take the address of
1485 a function.
1486
14872000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1488
1489 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1490
eb383413
L
1491 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1492
1493 * cp-demangle.c (demangle_char): Change parameter from char to int.
1494 (demangle_expression, demangle_expr_primary): Remove extra
1495 semi-colon in prototype.
1496
1497 * dyn-string.c (dyn_string_append_char): Change parameter from
1498 char to int.
1499
1500 * memcmp.c (memcmp): Constify.
1501
1502 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1503 __extension__.
1504
1505 * partition.c (elem_compare): Prototype. Don't cast away
1506 const-ness.
1507
1508 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1509
eb383413
L
15102000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1511
1512 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1513
1514 * cp-demangle.c: Include demangle.h.
1515 (template_arg_list_new): DeANSIfy.
1516 (cp_demangle): Make static and add prototype.
1517 (operator_code, operators): Constify.
1518 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1519
15202000-06-05 Alex Samuel <samuel@codesourcery.com>
1521
1522 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1523 unsigned char.
1524 (demangle_unqualified_name): Likewise.
1525 (demangle_number_literally): Likewise.
1526 (demangle_type): Likewise.
1527 (demangle_substitution): Likewise.
1528 (is_mangled_char): Likewise, for isalnum.
1529
15302000-06-04 Alex Samuel <samuel@codesourcery.com>
1531
1532 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1533 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1534 (cp-demangle.o): New dependency.
1535 (dyn-string.o): Likewise.
1536
1537 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1538
1539 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1540 demangler.
1541 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1542 demangling mode.
1543 (gnu_new_abi_symbol_characters): New function.
1544 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1545 file.
1546 * cp-demangle.c: New file.
ae7d06ad 1547
f03aa80d
AC
1548Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1549
1550 * floatformat.c: Add name to each floatformat field.
1551
77bfb694
JL
1552Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1553
1554 * Makefile.in (objalloc.o): Depend on config.h
1555
5c82d20a
ZW
15562000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1557
eb383413 1558 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1559 if HAVE_STRING_H.
1560 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1561 * objalloc.c: Include config.h. Include stdlib.h and don't
1562 declare malloc or free if HAVE_STDLIB_H.
1563 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1564 else declare malloc without prototype. Include string.h if
1565 HAVE_STRING_H, else declare memset without prototype. Don't
1566 include stddef.h.
1567
eb383413
L
15682000-05-23 Mike Stump <mrs@wrs.com>
1569
1570 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1571 -j3.
eb383413
L
1572
15732000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1574
1575 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1576
15772000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1578
ae7d06ad 1579 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1580 probably zero, also eliminate a warning on alpha.
1581
15822000-05-15 David Edelsohn <edelsohn@gnu.org>
1583
1584 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1585 on $(enable_shared).
1586
15872000-05-10 Jakub Jelinek <jakub@redhat.com>
1588
1589 * config.table: Use mh-sparcpic for sparc*-*-*.
1590
15912000-05-08 Nick Clifton <nickc@cygnus.com>
1592
1593 * Makefile.in (CFILES): Add strncmp.c.
1594 (NEEDED): Add strncmp.
1595
15962000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1597
eb383413
L
1598 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1599 Cast the arguments to `islower' to `unsigned char'.
1600 (print_demangler_list): Prototype.
1601
1602Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1603
1604 * sort.c (UCHAR_MAX): Provide fallback definition.
1605
16062000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1607
1608 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1609 SUBDIRS.
1610
eb383413
L
16112000-04-28 Kenneth Block <block@zk3.dec.com>
1612 Jason Merrill <jason@casey.cygnus.com>
1613
ae7d06ad
NC
1614 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1615 (cplus_demangle_set_style): New function for setting style.
1616 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1617
16182000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1619
1620 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1621
1622 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1623 (libiberty_AC_FUNC_STRNCMP): Invoke.
1624
1625 * strncmp.c: New file.
1626
1627Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1628
1629 * hashtab.c (htab_expand): Add prototype.
1630 (find_empty_slot_for_expand): Likewise.
1631
16322000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1633
1634 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1635 match prototype.
1636 (htab_expand): Cast the return value of xcalloc.
1637
16382000-04-24 Mark Mitchell <mark@codesourcery.com>
1639
1640 * hashtab.c (hash_pointer): New function.
1641 (eq_pointer): Likewise.
1642 (htab_hash_pointer): New variable.
1643 (htab_eq_pointer): Likewise.
1644
16452000-04-23 Mark Mitchell <mark@codesourcery.com>
1646
1647 * sort.c (sort_pointers): Fix endianness bugs.
1648
1649 * sort.c: New file.
1650 * Makefile.in (CFILES): Add sort.c
1651 (REQUIRED_OFILES): Add sort.o.
1652 (sort.o): New target.
1653
19be4303
JL
16542000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1655
1656 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1657 4.3BSD systems.
1658
eb383413
L
1659Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1660
1661 * hashtab.c: Various minor cleanups.
1662 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1663 (htab_find_slot): Likewise.
1664
16652000-04-16 Dave Pitts <dpitts@cozx.com>
1666
1667 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1668
afe36a78
RH
16692000-04-05 Richard Henderson <rth@cygnus.com>
1670
1671 * splay-tree.c (splay_tree_remove): New.
1672
eb383413
L
16732000-03-30 Mark Mitchell <mark@codesourcery.com>
1674
1675 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1676 codes.
1677 (htab_find_with_hash): Likewise.
1678 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1679
eb383413
L
16802000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1681
1682 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1683 unless it will be used. Rearrange loop for better
1684 optimization.
1685 (higher_prime_number): Add static prototype.
1686
b4fe2683
JM
1687Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1688
1689 * Makefile.in (partition.o): Depend on config.h
1690
16912000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1692
1693 * hashtab.c (find_empty_slot_for_expand): New function.
1694 (htab_expand): Use it instead of htab_find_slot.
1695 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1696 argument HASH.
1697 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1698 (htab_find): New wrapper function.
1699 (htab_find_slot): Likewise.
1700 (htab_traverse): Pass slot, not entry, to called function.
1701
17022000-03-09 Alex Samuel <samuel@codesourcery.com>
1703
1704 * Makefile.in (CFILES): Add partition.c.
1705 (REQUIRED_OFILES): Add partition.o.
1706 (partition.o): New rule.
1707 * partition.c: New file.
ae7d06ad 1708
b4fe2683
JM
17092000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1710
1711 * hashtab.c (htab_create): Set del_f.
1712 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1713 Use it.
1714
17152000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1716
1717 * hashtab.c: Remove debugging variables (all_searches,
1718 all_collisions, all_expansions). Delete
1719 all_hash_table_collisions.
1720 (create_hash_table, delete_hash_table, empty_hash_table,
1721 find_hash_table_entry, remove_element_from_hash_table_entry,
1722 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1723 hash_table_elements_number, hash_table_collisions): Rename to:
1724 htab_create, htab_delete, htab_empty, htab_find_slot,
1725 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1726 htab_elements, htab_collisions.
1727 (htab_find): New function, handles common case where you don't
1728 plan to add or delete an entry.
1729 (htab_expand): Don't create a whole new table, just a new
1730 entry vector.
1731 (htab_find_slot): Simplify logic.
1732
08372f14
ILT
17331999-08-03 Ian Lance Taylor <ian@zembu.com>
1734
1735 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1736 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1737
1738 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1739 $(TARGETLIB)n so it works on MSDOS.
1740 (install_to_tooldir): Likewise.
1741
9c8ac5a9
ILT
17421999-07-21 Ian Lance Taylor <ian@zembu.com>
1743
1744 From Mark Elbrecht:
1745 * makefile.dos: Remove; obsolete.
8f36e47c 1746 * configure.bat: Remove; obsolete.
9c8ac5a9 1747
0c0a36a4
ILT
17481999-07-11 Ian Lance Taylor <ian@zembu.com>
1749
1750 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1751 warning.
1752
17532000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1754
1755 * pexecute.c: Conditionally include string.h.
b4fe2683 1756 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1757
17582000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1759
1760 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1761 we're using gcc.
1762
1763 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1764
17651999-12-27 Geoff Keating <geoffk@cygnus.com>
1766
1767 * vasprintf.c (int_vasprintf): Don't re-read the format character
1768 as this mishandles strings like '%%s'.
1769
17701999-12-05 Mark Mitchell <mark@codesourcery.com>
1771
1772 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1773 rather than struct splay_tree_node.
1774 (splay_tree_insert): Use struct splay_tree_s rather than struct
1775 splay_tree.
1776
1777Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1778
1779 * hashtab.c (sys/types.h): File included.
1780
17811999-11-22 Jason Merrill <jason@casey.cygnus.com>
1782
1783 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1784 BSD license, pursuant with
1785
1786 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1787
1788Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1789
1790 * hashtab.c: Include stdio.h.
1791
1792Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1793
1794 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1795
1796Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1797
1798 * xstrdup (sys/types.h): Include this file.
1799
18001999-10-28 Nathan Sidwell <nathan@acm.org>
1801
1802 * Makefile.in (SUBDIRS): New macro.
1803 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1804 avoid multiple subdirectory cleaning.
1805 (*-subdir): Use SUBDIRS.
1806
18071999-10-25 Jim Kingdon <http://developer.redhat.com/>
1808
1809 * cplus-dem.c: Move declarations of standard_symbol_characters and
1810 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1811 warnings.
1812
18131999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1814
1815 * hashtab.c (find_hash_table_entry): When returning a
1816 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1817 (clear_hash_table_slot): New function which deletes an entry
1818 by its position in the table, not its value.
1819 (traverse_hash_table): New function which calls a hook
1820 function for every live entry in the table.
1821
18221999-10-19 Mark Mitchell <mark@codesourcery.com>
1823
1824 * cplus-dem.c (INTBUF_SIZE): New macro.
1825 (string_append_template_idx): New function.
1826 (demangle_expression): Likewise.
1827 (demangle_integral_value): Use it.
1828 (demangle_real_value): New function, split out from ...
1829 (demangle_template_value_parm): ... here. Use
1830 string_append_template_idx. Use demangle_real_value.
1831 (demangle_template): Use string_append_template_idx.
1832 (demangle_qualified): Use consume_count_with_underscores.
1833 (get_count): Tweak formatting.
1834 (do_type): Use string_append_template_idx.
b4fe2683 1835
0c0a36a4
ILT
18361999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1837
1838 * calloc.c: Add a public domain notice.
1839
1840Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1841
1842 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1843
1844Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1845
1846 * Makefile.in (CFILES): Add hashtab.c
1847 (REQUIRED_OFILES): Add hashtab.o
1848 (hashtab.o): Add dependencies.
1849 * hashtab.c: New file
1850
1851Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1852
1853 * basename.c (DIR_SEPARATOR): New macro.
1854 (DIR_SEPARATOR_2): Likewise.
1855 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1856 (IS_DIR_SEPARATOR): Likewise.
1857 (main): Handle MSDOS style pathname.
1858
18591999-10-11 Mark Mitchell <mark@codesourcery.com>
1860
1861 * cplus-dem.c (do_type): Handle pointer to member types whose
1862 enclosing classes have namespace scope.
1863
1864Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1865
1866 * config.table: Provide a backup shell for executing move-if-change.
1867
18681999-10-02 Mark Mitchell <mark@codesourcery.com>
1869
1870 * xmalloc.c (xmalloc): Fix spelling error.
1871 (xcalloc, xrealloc): Likewise.
1872
18731999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1874
1875 * cplus-dem.c (fancy_abort, demangle_integral_value,
1876 demangle_arm_hp_template, recursively_demangle,
1877 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1878 (program_name, program_version, fatal): Constify a char*.
1879 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1880 (main): Call return, not exit.
1881
18821999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1883
1884 * choose-temp.c: Remove obsolete comment about gcc.
1885 (make_temp_file): Constify a char*.
1886
1887Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1888
1889 * xmemdup.c: Include sys/types.h.
1890
18911999-09-07 Jeff Garzik <jgarzik@pobox.com>
1892
1893 * xmemdup.c: New xmemdup function.
1894 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1895
1896Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1897
b4fe2683 1898 * config.table: Add openedition target.
0c0a36a4
ILT
1899 * config/mh-openedition: New file.
1900
1901Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1902
1903 * pexecute.c (pexecute): Fill in temp_base when needed.
1904
19051999-08-31 Richard Henderson <rth@cygnus.com>
1906
1907 * getpwd.c: Check HAVE_GETCWD before defining it away.
1908
19091999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1910
1911 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1912 (REQUIRED_OFILES): Add getpwd.o.
1913 (getpwd.o): Add target.
1914
1915 * configure.in (AC_PREREQ): Bump to 2.13.
1916 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1917
1918 * getpwd.c: New file, moved here from gcc.
1919
19201999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1921
1922 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1923 comparing against a signed quantity.
1924 (arm_special): Likewise.
1925 (demangle_fund_type): Likewise.
1926 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1927 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1928 (main): Constify variable `valid_symbols'.
1929
1930Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1931
1932 * strtoul.c (strtoul): Add parentheses around && within ||.
1933
1934Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1935
1936 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1937 libdir, libsubdir and tooldir.
1938
19391999-08-01 Mark Mitchell <mark@codesourcery.com>
1940
1941 * splay-tree.c (splay_tree_insert): Return the new node.
1942
35ca97ea
RH
19431999-07-14 Richard Henderson <rth@cygnus.com>
1944
b4fe2683 1945 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1946 prototyping directly.
1947 * choose-temp.c: Conditionally include string.h.
1948
0c0a36a4
ILT
19491999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1950
1951 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1952
af32ff69
ILT
19531999-07-11 Ian Lance Taylor <ian@zembu.com>
1954
1955 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1956 warning.
1957
0c0a36a4
ILT
19581999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1959
1960 * Makefile.in (needed-list): Only include stuff we actually need
1961 for libstdc++.
1962
19631999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1964
1965 * configure.in (checkfuncs): Add gettimeofday.
1966 * config.in, configure: Regenerated.
1967
1968Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1969
1970 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1971 the test fails.
1972 * configure: Regenerate.
1973
19741999-06-10 Mike Stump <mrs@wrs.com>
1975
1976 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1977 parallel builds.
1978
19791999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1980
1981 * putenv.c: Include ansidecl.h to define `const'.
1982 * setenv.c: Likewise.
1983
1984Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1985
1986 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1987 * configure.in (funcs): Add putenv and setenv.
1988 (AC_CHECK_FUNCS): Check for putenv and setenv.
1989 * configure: Rebuilt.
1990 * putenv.c setenv.c: New files.
1991
1992 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1993 bytes of space using malloc.
1994
1995Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1996
1997 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1998 the *mangled pointer beyond the end of the string. Clean up code to
1999 match prevailing coding style.
2000
20011999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2002
2003 * tmpnam.c (L_tmpnam): Fix typo.
2004
2005Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2006
2007 * cplus-dem.c (standard_symbol_characters): Renamed from
2008 standard_symbol_alphabet. No longer modify TABLE.
2009 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2010 modify TABLE.
2011 (main): Corresponding changes. Use strchr to determine if a
2012 character is valid.
2013
e9868447
JB
20141999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2015
2016 * cplus-dem.c (main): Use table lookup to distinguish identifier
2017 characters from non-identifier characters.
2018 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2019
33fbbfbc
RH
2020Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2021
2022 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2023 * getruntime.c: Only attempt to include sys/resource.h and
2024 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2025 are defined.
2026
0c0a36a4
ILT
2027Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2028
2029 * configure.in (alloca detection): Handle alloca directly for interix.
2030 * configure: Rebuilt.
2031
2032Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2033
2034 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2035
252b5132
RH
20361999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2037
2038 Fix from Dale Hawkins:
b4fe2683 2039 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2040 reallocated properly if we use it again.
2041
2042 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2043 stricter about syntax. Always null-terminate string.
2044
c1687039
ILT
2045Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2046
2047 * configure.in (checkfuncs): Check for sbrk.
2048 * config.in: Rebuilt.
2049 * configure: Likewise.
2050 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2051
0c0a36a4
ILT
20521999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2053
2054 Fix from Marcus Daniels:
2055 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2056 identifier looking for another underscore.
2057
2058Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2059
2060 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2061 * xmalloc.c: Likewise.
2062 (xcalloc): UWIN has sbrk.
2063 (xrealloc): Fix guard macro.
2064
252b5132
RH
20651999-04-11 Richard Henderson <rth@cygnus.com>
2066
2067 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2068 or <alloca.h>.
2069 * clock.c (GNU_HZ): New definition.
2070 (clock): Use it.
2071 * getruntime.c: Likewise.
2072
2073 * config.table: Use mh-beos.
2074 * config/mh-beos: New file.
2075
0c0a36a4
ILT
20761999-04-11 Mark Mitchell <mark@codesourcery.com>
2077
2078 * cplus-dem.c (demangle_template_value_parm): Handle
2079 pointers-to-members.
2080 (do_type): Handle template parameters as qualifiers.
2081
252b5132
RH
20821999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2083
2084 * cplus-dem.c: Attempt to handle overflows in counts with some
2085 semblance of grace.
2086 (consume_count): Detect overflows. Return -1 to indicate errors,
2087 instead of zero.
2088 (demangle_template_value_parm, demangle_template): Handle change
2089 to consume_count's return convention.
2090
0c0a36a4
ILT
20911999-04-05 Tom Tromey <tromey@cygnus.com>
2092
2093 * testsuite/regress-demangle: New file.
2094 * testsuite/demangle-expected: New file.
252b5132 2095
0c0a36a4
ILT
2096 * Makefile.in (all, check, installcheck, info, install-info,
2097 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2098 distclean, maintainer-clean, realclean): Depend on corresponding
2099 `-subdir' target.
2100 (all-subdir check-subdir installcheck-subdir info-subdir
2101 install-info-subdir clean-info-subdir dvi-subdir
2102 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2103 distclean-subdir maintainer-clean-subdir): New target.
2104 * testsuite/Makefile.in: New file.
2105 * configure: Rebuilt.
2106 * configure.in: Create testsuite/Makefile.
252b5132
RH
2107
21081999-04-02 Mark Mitchell <mark@codesourcery.com>
2109
2110 * splay-tree.h (splay_tree_compare_pointers): Define.
2111
21121999-03-30 Mark Mitchell <mark@codesourcery.com>
2113
2114 * splay-tree.c (splay_tree_compare_ints): Define.
2115
21161999-03-30 Tom Tromey <tromey@cygnus.com>
2117
2118 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2119 don't advance input pointer.
2120 (demangle_class_name): If consume_count didn't find a count, do
2121 nothing. Don't bother with `strlen' sanity check; consume_count
2122 does it for us.
2123
21241999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2125
2126 From Art Haas <ahaas@neosoft.com>:
2127 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2128 when doing arm or hp style.
2129 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2130
252b5132
RH
2131Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2132
2133 * pexecute.c (__CYGWIN32__): Rename to
2134 (__CYGWIN__): this.
2135 * xmalloc.c: Likewise.
2136
2137 Changes to support i386-pc-uwin.
2138 * configure.in (*-*-uwin*): Workaround for vfork bug.
2139 * configure: Regenerate.
2140 * pexecute.c (pexecute): Be like standard Unix.
2141 (pwait): Likewise.
2142 * xmalloc.c (first_break): Define.
2143 (xmalloc_set_program_name): Use.
2144 (xmalloc): Use.
2145
2146Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2147
2148 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2149
2150Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2151
2152 * config.table: Check cygwin*, not cygwin32*.
2153
2154Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2155
2156 * Makefile.in: Change mkstemp -> mkstemps.
2157
2158Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2159
2160 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2161 * configure.in (funcs): Check for and conditionally add mkstemps to
2162 the list of functions libiberty will provide.
2163 * configure: Rebuilt.
b4fe2683 2164
252b5132
RH
2165Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2166
b4fe2683 2167 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2168 platforms that don't have HZ.
2169 * getruntime.c (HZ): Likewise.
2170
2171Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2172
2173 * Makefile.in (xstrdup.o): Depend on config.h.
2174
2175Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2176
2177 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2178 freeing it.
2179
2180Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2181
2182 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2183
2184Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2185
2186 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2187 splay-tree.o.
2188
21891999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2190
2191 * configure.in: Require autoconf 2.12.1 or higher.
2192
21931998-12-30 Michael Meissner <meissner@cygnus.com>
2194
2195 * random.c (NULL): Don't redefine NULL if it is already defined.
2196
2197Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2198
2199 * argv.c (buildargv): Cast the result of alloca in assignment.
2200
2201 * choose-temp.c: Include stdlib.h.
2202
2203 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2204 (snarf_numeric_literal): Constify first parameter.
2205 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2206 int, not a char.
252b5132
RH
2207 (demangle_qualifier): Likewise.
2208 (demangle_signature): Cast the argument of a ctype function to
2209 unsigned char.
2210 (arm_pt): Add parens around assignment used as truth value.
2211 (demangle_arm_hp_template): Constify variable `args'.
2212 (do_hpacc_template_const_value): Cast the argument of a ctype
2213 function to unsigned char.
2214 (do_hpacc_template_literal): Remove unused variable `i'.
2215 (snarf_numeric_literal): Constify parameter `args'.
2216 Cast the argument of a ctype function to unsigned char.
2217
2218 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2219 avoid ambiguous `else'.
252b5132
RH
2220
2221 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2222 `cstart' and `cend' to unsigned char. Cast the argument of macro
2223 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2224
2225 * objalloc.c (free): Add prototype.
2226
2227Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2228
2229 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2230
2231Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2232
2233 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2234 doesn't exist.
252b5132 2235 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2236
252b5132
RH
2237Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2238
2239 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2240 bumping the pointer we read from. Also prepend these codes,
2241 as we do in other places.
2242
22431998-12-18 Nick Clifton <nickc@cygnus.com>
2244
2245 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2246 'const char *' in order to match its usage when calling siblings.
2247 (snarf_numeric_literal): Make first arg 'const char **' in order
2248 to match usage.
2249
2250Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2251
2252 * choose-temp.c: Don't check IN_GCC anymore.
2253
2254 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2255 * memchr.c (memchr): Likewise.
2256 * memcpy.c (memcpy): Likewise.
2257 * memmove.c (memmove): Likewise.
2258
2259 * mkstemp.c: Don't check IN_GCC anymore.
2260 * pexecute.c: Likewise.
2261 * splay-tree.c: Likewise.
2262
2263 * strchr.c (strchr): Use `const', not `CONST'.
2264 * strrchr.c (strrchr): Likewise.
2265 * strtol.c (strtol): Likewise.
2266 * strtoul.c (strtoul): Likewise.
2267
2268Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2269 Elena Zannoni <ezannoni@cygnus.com>
2270 Stan Shebs <shebs@cygnus.com>
2271 Edith Epstein <eepstein@cygnus.com>
2272 Andres MacLeod <amacleod@cygnus.com>
2273 Satish Pai <pai@apollo.hp.com>
2274
2275 * HP aCC demangling support.
2276 * cplus-dem.c
2277 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2278 demangling correctly when -edg specified; set the demangling style
2279 when user specifies 'edg'. Set strip_underscore to
2280 prepends_underscore, if not HPUXHPPA. Set
2281 current_demangling_style to hp_demangling if HPUXHPPA. Set
2282 current demangling style correctly if the switch is hp. Read
2283 label correctly also in the HP style case.
252b5132 2284 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2285 function.
252b5132 2286 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2287 style for this case is the same as ARM.
252b5132
RH
2288 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2289 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2290 demangle_arm_pt.); check and set value of temp_start field in
2291 multiple places. Also, when ceching for end of template args,
2292 check to see if at end of static member of template class.
252b5132 2293 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2294 include template args in string defining class.
252b5132
RH
2295 (demangle_class_name): use demangel_arm_hp_template.
2296 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2297 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2298 Handle EDG_DEMANGLING style. Handle constructor and destructor
2299 ops for HP style.
252b5132 2300 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2301 styles. global destructor and constructor for HP style are same
2302 as for ARM style. Same for local variables.
252b5132
RH
2303 (demangle_qualified): handle EDG_DEMANGLING style.
2304 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2305 cases '1' - '9' : initialize the temp_start field to -1 and handle
2306 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2307 and AUTO_DEMANGLING styles. If expecting a function and managed
2308 to demangle the funct args, then handle the LUCID_DEMANGLING,
2309 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2310 class name after "Lnnn_ in HP style case. HP style too needs to
2311 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2312 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2313 value param for HP/aCC.
252b5132 2314 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2315 literal parameter for HP aCC.
252b5132
RH
2316 (recursively_demangle): new function
2317 (snarf_numeric_literal): new function.
2318 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2319 to message.
252b5132
RH
2320
2321Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2322
2323 * pexecute.c: Remove obsolete ifdefed cygwin code.
2324
2325Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2326
2327 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2328 * cplus-dem.c: Likewise. Conform to libiberty.h.
2329 * pexecute.c: Likewise.
2330 * splay-tree.c: Likewise.
2331
23321998-11-25 Mike Stump <mrs@wrs.com>
2333
2334 * Makefile.in (splay-tree.o): Add config.h dependency.
2335
2336Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2337
2338 * configure.in: Use AC_PREREQ(2.12.1).
2339
23401998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2341
b4fe2683 2342 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2343
2344Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2345
2346 * mpw.c (mpw_access): Add missing parens.
2347
2348Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2349
2350 * configure.in: Call AC_HEADER_SYS_WAIT.
2351
2352 * pexecute.c: Include sys/wait.h when !IN_GCC.
2353
2354Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2355
2356 * pexecute.c: revert back to checking old Cygwin
2357 preprocessor symbol until some time has passed.
2358
2359Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2360
2361 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2362 since it will now support similar constructs.
2363
2364Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2365
2366 * configure.in: Check for calloc.
2367
2368 * calloc.c: New file.
2369
2370 * xmalloc.c (xcalloc): New function.
2371
2372Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2373
2374 *cplus-dem.c (demangle_prefix): Use the last "__"
2375 in the mangled name when looking for the signature. This allows
2376 template names to begin with "__".
2377
23781998-11-08 Mark Mitchell <mark@markmitchell.com>
2379
2380 * cplus-dem.c (type_kind_t): Add tk_reference.
2381 (demangle_template_value_parm): Handle it.
2382 (do_type): Use it for references, instead of tk_pointer.
2383
2384 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2385 not internal_cplus_demangle.
2386
2387Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2388
2389 * choose-temp.c: Don't include gansidecl.h.
2390 * mkstemp.c: Likewise.
2391 * pexecute.c: Likewise.
2392
2393Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2394
b4fe2683
JM
2395 * configure.in: detect cygwin* instead of cygwin32*
2396 * configure: regenerate
252b5132
RH
2397
2398Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2399
2400 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2401 whether to include config.h. Possibly include unistd.h in the
2402 !IN_GCC case. Define VFORK_STRING as a printable function call
2403 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2404 defined, include vfork.h. If VMS is defined, define vfork()
2405 appropriately. Remove vfork check on USG, we're using autoconf.
2406 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2407 locally what string to use.
252b5132
RH
2408
24091998-10-26 Mark Mitchell <mark@markmitchell.com>
2410
2411 * splay-tree.c: Tweak include directives to make sure declarations of
2412 xmalloc and free are available.
2413
24141998-10-25 Mark Mitchell <mark@markmitchell.com>
2415
2416 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2417 anonymous namespaces.
2418
24191998-10-23 Mark Mitchell <mark@markmitchell.com>
2420
2421 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2422 with type_quals.
2423 (TYPE_UNQUALIFIED): New macro.
2424 (TYPE_QUAL_CONST): Likewise.
2425 (TYPE_QUAL_VOLATILE): Likewise.
2426 (TYPE_QUAL_RESTRICT): Likewise.
2427 (code_for_qualifier): New function.
2428 (qualifier_string): Likewise.
2429 (demangle_qualifier): Likewise.
2430 (internal_cplus_demangle): Use them.
2431 (demangle_signature): Likewise.
2432 (demangle_template_value_parm): Likewise.
2433 (do_type): Likewise.
2434 (demangle_fund_type)): Likewise.
2435
2436Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2437
2438 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2439 to match prototype.
2440
24411998-10-21 Mark Mitchell <mark@markmitchell.com>
2442
2443 * splay-tree.c: New file.
2444 * Makefile.in (CFILES): Add it.
2445 (REQUIRED_OFILES): Likewise.
2446 (splay-tree.o): Add dependencies.
2447
2448Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2449
2450 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2451 range of 'K' index.
2452
2453Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2454
2455 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2456
2457 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2458 `unsigned char'.
2459 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2460 comparing against one.
2461 (cplus_mangle_opname): Likewise.
2462 (demangle_integral_value): Cast argument of ctype macro to
2463 `unsigned char'.
2464 (demangle_template_value_parm): Likewise.
2465 (demangle_template): Initialize variable `bindex'. Cast the
2466 result of `strlen' to (int) when comparing against one. Remove
2467 unused variable `start_of_value_parm'.
2468 (demangle_class_name): Cast the result of `strlen' to (int) when
2469 comparing against one.
2470 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2471 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2472 when comparing against one.
2473 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2474 (get_count): Likewise.
2475 (do_type): Likewise. Cast the result of `strlen' to (int) when
2476 comparing against one.
2477 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2478 (demangle_function_name): Cast the result of `strlen' to (int)
2479 when comparing against one.
2480
2481 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2482 comparing against one.
2483
2484Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2485
b4fe2683
JM
2486 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2487 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2488 * config.in, configure: Rebuilt.
252b5132
RH
2489
2490 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2491 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2492 * config.in, configure: Rebuilt.
2493
2494Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2495
b4fe2683 2496 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2497
2498Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2499
2500 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2501
2502Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2503
2504 * Merge egcs & devo libiberty.
2505