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