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