]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - libiberty/ChangeLog
2002-11-24 Andrew Cagney <ac131313@redhat.com>
[thirdparty/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
2a80c0a4
DD
12002-11-22 Daniel Jacobowitz <drow@mvista.com>
2
3 * Makefile.in: Add make-relative-prefix.c.
4 * make-relative-prefix.c: New file.
5 * functions.texi: Rebuilt.
6
768b20d8
JJ
72002-11-16 Jakub Jelinek <jakub@redhat.com>
8
9 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
10 used with arguments in traditional C' warnings.
11
f52d1d64
JJ
122002-10-16 Jakub Jelinek <jakub@redhat.com>
13
14 * config.table: Use mh-s390pic for s390x too.
15
0d3deb8d
DD
162002-10-06 Andreas Jaeger <aj@suse.de>
17
18 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
19 variable and of strict-aliasing warning.
20 (grow_vect): Use char as first parameter.
21
1b67de92
DD
222002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23
24 * Makefile.in (all): Fix multilib parallel build.
25
585cc78f
DD
262002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
27
28 * cp-demangle.c (demangling_new): Cast 0 to enum.
29 (demangle_char): Cast return of strdup to char *.
30 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
31 (is_gnu_v3_mangled_dtor): Likewise.
32 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
33 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
34 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
35 * md5.c (md5_process_bytes): Cast results back to const void *.
36 (md5_process_block): Add cast to const md5_uint32 *.
37 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
38 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
39 unsigned short.
40 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
41 to void *.
42 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
43
e21b0cc1
NC
442002-09-19 Nick Clifton <nickc@redhat.com>
45
46 * README: Update email addresses for bugs and patches.
47
a54ba43f
DD
482002-09-10 Mike Stump <mrs@apple.com>
49
50 * splay-tree.c (splay_tree_successor): Fix comments.
51
522002-09-11 Zack Weinberg <zack@codesourcery.com>
53
54 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
55 * testsuite/Makefile.in: Adjust for test-demangle.
56 * testsuite/regress-demangle: Deleted.
57 * testsuite/test-demangle.c: New file.
58 * testsuite/demangle-expected: Change \$ to $ throughout, now that
59 this file is not being read by a shell script.
60
01cea699
DD
612002-09-05 Roger Sayle <roger@eyesopen.com>
62
63 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
64
a2832523
DD
652002-08-07 DJ Delorie <dj@redhat.com>
66
67 * regex.c (re_error_msgid): Just use a simple array of strings.
68 (re_compile_pattern): Compensate.
69 (re_comp): Likewise.
70 (re_comp): Likewise.
71 (regerror): Likewise.
72
1e3f0be0
DD
732002-07-29 Neil Booth <neil@daikokuya.co.uk>
74
75 * cplus-dem.c (PREPEND_BLANK): Remove.
76
b851d07b
DD
772002-07-10 Jason Merrill <jason@redhat.com>
78
79 * cp-demangle.c (demangle_identifier): Support extended Unicode
80 characters.
81
2a9dffbf
DD
822002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
83
84 * cp-demangle.c (demangle_v3_with_details): Wrap in
85 !defined IN_GLIBCPP_V3.
86
793011ca
DD
872002-07-01 Mark Mitchell <mark@codesourcery.com>
88
89 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
90 Set it for the "st" operator.
91 (demangle_expression): Handle expressions with types as arguments.
92
b39b76b8
DD
932002-06-30 Douglas Rupp <rupp@gnat.com>
94
95 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
96 * Makefile.in (OUTPUT_OPTION): Use.
97
4748c6d8
DD
982002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
99
100 * Makefile.in (install_to_libdir): Add $(DESTDIR).
101 (install_to_tooldir): Likewise.
102
f9c3326a
DD
1032002-06-17 Douglas Rupp <rupp@gnat.com>
104
105 * lbasename.c: Add 2002 to copyright.
106 (IS_DIR_SEPARATOR): Remove VMS junk.
107
18893690
DD
1082002-06-05 Geoffrey Keating <geoffk@redhat.com>
109
110 * hashtab.c (htab_create): New stub function for backward
111 compatibility.
112 (htab_try_create): Likewise.
113
1142002-06-03 Geoffrey Keating <geoffk@redhat.com>
115
116 * hashtab.c (htab_create): Delete.
117 (htab_try_create): Delete.
118 (htab_create_alloc): New.
119 (htab_delete): Support user-specified memory allocation.
120 (htab_expand): Likewise.
121
1222002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
123
124 * configure.in: Fix typo in the code checking for sys_errlist.
125 * configure: Regenerated.
126
9296c8b2
DD
1272002-05-13 Andreas Schwab <schwab@suse.de>
128
129 * config.table: Use mh-x86pic also for x86-64.
130
52d98c2d
DD
1312002-05-08 Alexandre Oliva <aoliva@redhat.com>
132
133 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
134 script entry, and set LD to it when configuring multilibs.
135 * configure: Rebuilt.
136
cafa3917
DD
1372002-05-07 Mark Mitchell <mark@codesourcery.com>
138
139 * configure.in (AC_TYPE_PID_T): Use it.
140 * configure: Regenerated.
141 * getruntime.c: Include <sys/types.h>.
142 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
143
b1c933fc
RH
1442002-04-09 Richard Henderson <rth@redhat.com>
145
146 * hashtab.c (higher_prime_number): Use 7 as minimum.
147 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
148 (htab_find_slot_with_hash): Likewise.
149
0c4460bb
DD
1502002-04-01 Phil Edwards <pme@gcc.gnu.org>
151
152 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
153 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
154 not compile if IN_GLIBCPP_V3 defined.
155 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
156
f2160d2b
DD
1572002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
158
3ebf1f59 159 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
160 if it is NULL.
161
7dd4d42a
DD
1622002-03-27 DJ Delorie <dj@redhat.com>
163
164 * hex.c: Add documentation.
165 (_hex_value): Provide non-ASCII empty table.
166 (hex_init): Initialize the non-ASCII table.
167 * functions.texi: Regenerate.
168
38e57a35
DD
1692002-03-27 Mark Mitchell <mark@codesourcery.com>
170
171 * dyn-string.c: Add libgcc exception to copyright notice.
172
cfed0715
DD
1732002-03-26 H.J. Lu (hjl@gnu.org)
174
175 * config.table: Support --with-build-subdir.
176 * configure.in: Likewise.
177 * configure: Rebuild.
178
1504972f
DD
1792002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
180
181 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
182 seen.
183
35efcd67
DD
1842002-03-12 Mark Mitchell <mark@codesourcery.com>
185
186 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
187 notice.
188
dabc64ea
DD
1892002-03-11 Douglas B Rupp <rupp@gnat.com>
190
191 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
192
3ddbd84c
JB
1932002-03-06 Jim Blandy <jimb@redhat.com>
194
195 * splay-tree.c (splay_tree_xmalloc_allocate,
196 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
197 prototyped definitions. Mark `data' arguments as unused.
198
efdab807
AC
1992002-03-06 Andrew Cagney <ac131313@redhat.com>
200
201 * floatformat.c (floatformat_arm_ext_big): Delete definition.
202
50d4562d
DD
2032002-03-04 Phil Edwards <pme@gcc.gnu.org>
204
205 * configure.in: Add --enable-install-libiberty option.
206 * Makefile.in (INSTALLED_HEADERS): New variable.
207 (install_to_libdir): Possibly also copy headers.
208 * configure: Regenerated.
209
2102002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
211
212 * xmalloc.c (xmalloc_fail): Clarify error message further.
213
6e9980f5
DD
2142002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
215
216 * xmalloc.c (xmalloc_fail): Clarify error message.
217
18893690 2182002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
219
220 * splay-tree.c (splay_tree_xmalloc_allocate,
221 splay_tree_xmalloc_deallocate): New functions.
222 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
223 above functions and a dummy data pointer.
224 (splay_tree_new_with_allocator): New function.
225 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
226 splay_tree_remove): Use the splay tree's allocation and
227 deallocation functions.
228
59ea9fe7
DD
2292002-02-19 Scott Snyder <snyder@fnal.gov>
230
231 * testsuite/demangle-expected: Add test case for infinite loop in
232 demangler.
233 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
234 if do_type() doesn't make any progress --- prevents an infinite
235 loop.
236
6f848550
DD
2372002-02-18 Carlo Wood <carlo@gnu.org>
238
239 PR c++/5390
240 * cplus-dem.c (demangle_integral_value): Accept multi-digit
241 numbers that do not start with an underscore; This is needed
242 for integer template parameters. This doesn't break anything
243 because multi-digit numbers are never followed by a digit.
244 * testsuite/demangle-expected: Corrected all mangled test
245 cases with multi-digit template parameters: g++ 2.95.x does
246 not generate underscores around these parameters.
247
44354ae1
DD
2482002-02-05 Jason Merrill <jason@redhat.com>
249
250 * cplus-dem.c (flags): Add DMGL_VERBOSE
251 (cplus_demangle_v3_p): Remove.
252 (demangle_it): Add DMGL_TYPES to passed flags.
253 * cp-demangle.c (cplus_demangle_v3_all): Remove.
254 (cplus_demangle_v3_type): Remove.
255 (cplus_demangle_v3): Add options parm.
256
42da15d6
DD
2572002-02-02 H.J. Lu (hjl@gnu.org)
258
259 * cp-demangle.c (cp_demangle_type): Do not protect with
260 IN_LIBGCC2.
261 (cplus_demangle_v3_all): New.
262 (cplus_demangle_v3): Call cplus_demangle_v3_all.
263 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
264
265 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
266 Initialized to cplus_demangle_v3.
267 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
268 of cplus_demangle_v3.
269 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
270 command line symbol.
271
272 * testsuite/regress-demangle: Pass the mangled name at the
273 command line.
274
b117c158
DD
2752002-02-01 H.J. Lu <hjl@gnu.org>
276
277 * cp-demangle.c (cp_demangle_type): Call demangling_new with
278 DMGL_GNU_V3.
279
c78d91b1
DD
2802002-01-31 Phil Edwards <pme@gcc.gnu.org>
281
282 * cp-demangle.c: Revert yesterday's change.
283
bef8b55d
DD
2842002-01-31 Adam Megacz <adam@xwt.org>
285
286 * gcc/libiberty/configure.in: Treat mingw the same as cywin
287 wrt HAVE_SYS_ERRLIST.
288
2c955b8b
DD
2892002-01-30 Phil Edwards <pme@gcc.gnu.org>
290
291 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
292 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
293 cp_demangle_type.
294 * testsuite/demangle-expected: New gnu-v3 test.
295
58b1717a
RH
2962002-01-22 Momchil Velikov <velco@fadata.bg>
297
298 * configure.in (variable detection): Use arrays of unspecified
299 size instead of plain integers.
300
cc096b71
DD
3012002-01-18 DJ Delorie <dj@redhat.com>
302
303 * Makefile.in (TESTLIB): New. This library is for future
304 testsuites.
305 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
306 break down by letter.
307 (REQUIRED_OFILES): List long-to-compile files first.
308 (maint-deps): New, target for updating dependencies.
309 (dependencies): Update.
310 * maint-tool: Add dependency-generating option.
311 * configure.in: Check for _doprnt even if we're not providing it.
312 * configure: Regenerate.
313
314 * _doprnt.c: Modifications to allow compiling on any platform.
315 * copysign.c: Likewise.
316 * putenv.c: Likewise.
317 * setenv.c: Likewise.
318 * vsprintf.c: Likewise.
319
3202002-01-15 Douglas B Rupp <rupp@gnat.com>
321
322 * mkstemps.c (mkstemps): On VMS, open temp file with option
323 that causes it to be deleted when closed.
324
20d54542
DD
3252002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
326
c23795e2
DD
327 * cp-demangle.c (long_options): Const-ify.
328 * cplus-dem.c (long_options): Likewise.
329
20d54542
DD
330 * cplus-dem.c (mystrstr): Delete. All callers changed to use
331 strstr instead.
332
f348a7b1
DD
3332001-12-31 Ira Ruben <ira@apple.com>
334
335 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
336 * configure: Regenerated.
337
d86cd745
DD
3382001-12-24 Douglas B. Rupp <rupp@gnat.com>
339
340 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
341 * configure: Regenerated.
342
ae533646
DD
3432001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
344
345 PR other/2719
346 * cplus-dem.c (consume_count): Treat negative count as an error.
347 * testsuite/demangle-expected: Added testcase.
348
c0eb281b
DD
349Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
350
351 * configure.in: Hardcode that vfork works on VMS host.
352 * configure: Regenerated.
353
2da4c07f
RH
3542001-12-06 Richard Henderson <rth@redhat.com>
355
356 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
357 (cplus_demangle): Support no_demangling.
358
24acd898
DD
3592001-11-27 Zack Weinberg <zack@codesourcery.com>
360
361 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
362 in libiberty context. Fix typo in leading comment.
363 * configure.in: Fix various AC_DEFINEs so autoheader works.
364 If any of vprintf, vsprintf, vfprintf is missing from libc,
365 then AC_REPLACE_FUNCS(_doprnt).
366
fec50157 3672001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 368 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
369
370 * Makefile.in (stamp-h): Depend on Makefile for proper
371 serialization.
372 (*-subdir): Depend on config.h for proper serialization.
373
5527febf
DD
3742001-11-26 DJ Delorie <dj@redhat.com>
375
376 * configure.in: Check for alloca.h (for regex.c and putenv.c).
377 * configure: Regenerate.
378 * config.h: Add HAVE_ALLOCA_H.
379
941d74a0
DD
3802001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
381
382 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
383 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
384 is available.
385
dc579051
DD
386Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
387
388 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
389 * configure.in (HAVE_UINTPTR_T): Test for system defining
390 uintptr_t and define HAVE_UINTPTR_T appropriately.
391 * regex.c (uintptr_t): Do not provide a definition if the
392 system provided one.
393
394 * regex.c (PREFIX): Provide an alternate definition for
395 non-ANSI/ISO compilers.
396 (ARG_PREFIX): Likewise.
397
1a78a35a
DD
3982001-11-12 Jim Meyering <meyering@lucent.com>
399
400 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
401 this code would end up calling gettext even in packages built
402 with --disable-nls.
403 * getopt.c (_): Likewise.
404 * regex.c (_): Likewise.
405
4e55c4b6
DD
4062001-11-03 Alan Modra <amodra@bigpond.net.au>
407
408 * configure.in: Cope with missing makeinfo.
409 * configure: Regenerate.
410
d311a83a
DD
4112001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
412
413 * hex.c (hex_init): Provide empty stub.
414
415 * hex.c (hex_init): Delete.
416 (_hex_value): Const-ify and initialize at compile-time.
417
3bc62f91
DD
4182001-10-19 H.J. Lu <hjl@gnu.org>
419
420 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
421 necessary.
422
5d852400
DD
4232001-10-17 DJ Delorie <dj@redhat.com>
424
425 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
426 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 427 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
428 Improve manual formatting.
429 * functions.texi: Regenerate.
430
ba19b94f
DD
4312001-10-15 DJ Delorie <dj@redhat.com>
432
433 * Makefile.in (TEXIFILES): Add fnmatch.txh.
434 (maint-undoc): New.
435 maint-tool: Add "undoc" tool.
436 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
437 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
438 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
439 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
440 documentation.
441 * fnmatch.txh: New.
442 * functions.texi: Regenerate.
443
56056af5
DD
4442001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
445
446 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
447 * strtod.c: Use "ISO C" instead of "ANSI C".
448 * functions.texi: Regenerate.
449
99b58139
DD
4502001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
451
452 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
453 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
454 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
455 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
456 spelling. Give names to function arguments in documentation. Use
457 (void) prototypes in documentation.
458 * functions.texi: Regenerate.
459
e6450fe5
DD
4602001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
461
462 * argv.c (buildargv, tests, main): Const-ify.
463 * cp-demangle.c (operator_code): Likewise.
464 * cplus-dem.c (optable, libiberty_demanglers,
465 cplus_demangle_set_style, cplus_demangle_name_to_style,
466 print_demangler_list): Likewise.
467 * hashtab.c (higher_prime_number): Likewise.
468 * strcasecmp.c (charmap): Likewise.
469 * strerror.c (error_info, strerror, main): Likewise.
470 * strncasecmp.c (charmap): Likewise.
471 * strsignal.c (signal_info): Likewise.
472
da191b5b
DD
4732001-09-29 DJ Delorie <dj@redhat.com>
474
475 * configure: Regenerate.
476
916aaa12
DD
4772001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
478
479 * concat.c: Include stdlib.h.
480
fa9f0e33
DD
4812001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
482
483 * libiberty.texi: (Top level): Add syncodeindex pg. Add
484 @dircategory and @direntry directives. Add @finalout.
485 (many nodes): Lose the next,prev,up pointers on the @nide line.
486 (Using, Supplemental Functions, Replacement Functions): Fix
487 markup.
488 (Functions): Move around, to allow makeinfo to build the manual
489 without next,prev,up pointers in thye node lines.
490 (Licenses): Fix typos.
491
492 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
493 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
494 * functions.texi: Regenerate.
495
496 * copying-lib.texi: Lose the next,prev,up pointers on the @node
497 line.
498
4992001-09-27 DJ Delorie <dj@redhat.com>
500
501 * configure.in: Don't use in-tree texinfo, because libiberty must
502 be built before it. Check for makeinfo version 4 or higher.
503 * functions.texi: Regenerate.
504
39423523
DD
5052001-09-20 DJ Delorie <dj@redhat.com>
506 Phil Edwards <pedwards@disaster.jaj.com>
507
508 * configure.in (MAKEINFO, PERL): Detect these.
509 (--enable-maintainer-mode): Add.
510 * configure: Regenerate.
511 * Makefile.in (MAKEINFO, PERL): Define.
512 (libiberty.info, libiberty.dvi, libiberty.html): New.
513 (CFILES): Add bsearch.c.
514 (CONFIGURED_OFILES): New, list of objects configure might add.
515 (maint-missing, maint-buildall): New, for maintainers only.
516 (clean, mostlyclean): Add info/dvi/html files.
517 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
518 * gather-docs: New, for maintainers.
519 * maint-tool: New, for maintainers.
520 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
521 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
522 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
523 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
524 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
525 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
526 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
527 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
528 documentation.
529
66c94e19
DD
5302001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
531
532 * concat.c (reconcat): Fix for traditional C.
533
99ee3a8f
DD
5342001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
535
536 * concat.c (reconcat): New function.
537
54c20242
DD
5382001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
539
540 * concat.c (vconcat_length, vconcat_copy, concat_length,
541 concat_copy, concat_copy2): New functions.
542 (concat): Use vconcat_length/vconcat_copy.
543
544 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
545 Define.
546
843f21be
DD
5472001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
548
549 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
550 VA_FIXEDARG & VA_CLOSE.
551
552 * vasprintf.c: Check HAVE_STRING_H when including string.h.
553 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
554 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
555
8a423cb3
DD
5562001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
557
558 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
559
dc676635
DD
5602001-08-23 Ulrich Drepper <drepper@redhat.com>
561
562 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
563
5642001-08-23 Ulrich Drepper <drepper@redhat.com>
565
566 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
567 instead of mbrtowc.
568 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
569 wcslen, and __wcscoll instead of wcscoll.
570
f080c76d
DD
5712001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
572
3ebf1f59
DD
573 * fibheap.c (fibheap_init, fibnode_init): Remove.
574 (fibheap_new, fibnode_new): Use xcalloc to allocate and
575 initialize memory.
576 (fibheap_insert): Remove check for node allocation failure.
f080c76d 577
f01b59ed
DD
5782001-08-21 Richard Henderson <rth@redhat.com>
579
580 * Makefile.in (fibheap.o): Depend on config.h.
581 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
582 functions for inlining.
583
584Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
585
586 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
587 hosting on cygwin.
588 * configure: Regenerate.
589
eb828599
AC
5902001-08-20 Andrew Cagney <ac131313@redhat.com>
591
592 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
593 HARRIS_FLOAT_FORMAT.
594 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
595 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
596 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
597 (floatformat_m88110_harris_ext): New float formats.
598
4e55c4b6
DD
5992001-08-20 Daniel Berlin <dan@cgsoftware.com>
600
601 * fibheap.c: New file. Fibonacci heap.
602
603 * Makefile.in (CFILES): Add fibheap.c.
604 (REQUIRED_OFILES): Add fibheap.o.
605 (fibheap.o): Add dependencies for fibheap.o.
606
68a41de7
DD
6072001-08-17 Christopher Faylor <cgf@cygnus.com>
608
609 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
610 * configure: Regenerate.
611
8fc34799
DD
6122001-08-16 Richard Henderson <rth@redhat.com>
613
614 * hashtab.c (htab_hash_string): New.
615
16bad250
AC
6162001-08-13 Andrew Cagney <ac131313@redhat.com>
617
618 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
619 name.
620
a9022147
DD
6212001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
622
623 * regex.c (wcs_regex_compile): Use appropriate string
624 to compare with collating element.
625 Fix the padding for the alignment.
626
8aefe91a 6272001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
628
629 * lbasename.c (lbasename): Change function definition to return a
630 const char pointer.
631
e7e9b069
DD
6322001-08-07 Jason Merrill <jason_merrill@redhat.com>
633
634 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
635 for".
636
cc5144f8
DD
6372001-08-03 Richard Henderson <rth@redhat.com>
638
639 * Makefile.in (concat.o): Depend on config.h.
640
8aefe91a
DD
6412001-07-30 Andreas Jaeger <aj@suse.de>
642
643 * concat.c: Include "config.h".
644
86710ce2
DD
6452001-07-30 Andreas Jaeger <aj@suse.de>
646
647 * regex.c: Declare wcs functions only if compiling with
648 MBS_SUPPORT.
649 Don't use #elif for traditional C.
650
6512001-07-23 Ulrich Drepper <drepper@redhat.com>
652
653 * regex.c: Revamp memory allocation for WCHAR functions to
654 not use too much stack.
655
6562001-07-30 Andreas Jaeger <aj@suse.de>
657
658 * regex.c: Declare wcs functions only if compiling with
659 MBS_SUPPORT.
660 Don't use #elif for traditional C.
661
a5d8f731
DD
6622001-07-25 Daniel Jacobowitz <drow@mvista.com>
663
664 * Makefile.in (regex.o): Add dependency on config.h.
665
6ad8a379
DD
6662001-07-18 Andreas Schwab <schwab@suse.de>
667
668 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
669 underscore character.
670
6712001-07-18 Ulrich Drepper <drepper@redhat.com>
672
673 * regex.c: Limit string length printed in debug messages to 100
674 chars.
675
6762001-07-18 Andreas Jaeger <aj@suse.de>
677
678 * regex.c: Place under LGPL version 2.1.
679
2a6ef469
DD
6802001-07-10 Jeff Johnston <jjohnstn@redhat.com>
681
682 * Makefile.in: Add support for regex code.
683 * regex.c: New file.
684
7b78baae
DD
6852001-07-05 Mark Klein <mklein@dis.com>
686
687 * Makefile.in: Add ffs.c dependency.
688 * configure.in: Add ffs.c.
689 * ffs.c: New file.
690
926150e2
DD
6912001-06-18 Richard Henderson <rth@redhat.com>
692
693 * concat.c: Include <sys/types.h>.
694
11f6f21d
DD
6952001-06-11 Loren J. Rittle <ljrittle@acm.org>
696
697 bootstrap/3106
698 * strerror.c (sys_nerr): Hide the OS header version.
699 * strsignal.c (sys_nsig): Likewise.
700
d42dae6c
DD
7012001-06-10 Richard Henderson <rth@redhat.com>
702
703 * concat.c: Include string.h. Fix int vs size_t usage.
704 Simplify the iteration loops. Use memcpy.
705
e05c6d27
DD
7062001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
707
708 * partition.c: Fix misspelling of `implementation'.
709
b50c4073
DD
7102001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
711
712 * md5.c (md5_init_ctx): Declare constants as unsigned.
713 (md5_process_block): Likewise.
714
457161bf
DD
7152001-05-07 Zack Weinberg <zackw@stanford.edu>
716
717 * cp-demangle.c (demangle_v3_with_details,
718 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
719 function definition.
720 * ternary.c: Use K+R style function definitions. Use PTR, not
721 void *. Make arguments constant where possible.
722
e00bc6a7
DD
7232001-05-07 Mark Mitchell <mark@codesourcery.com>
724
725 * splay-tree.h (splay_tree_max): New function.
726 (splay_tree_min): Likewise.
727
400ee7e1
DB
7282001-04-15 Daniel Berlin <dan@cgsoftware.com>
729
730 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
731
732 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 733
d9697354
DD
7342001-04-03 Zack Weinberg <zackw@stanford.edu>
735
736 * make-temp-file.c (try): Inline.
737
a7bf099b
DD
7382001-02-28 Richard Henderson <rth@redhat.com>
739
740 * Makefile.in (make-temp-file.o): Depend on config.h.
741
30a1def2
DD
7422001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
743
744 * memchr.c (memchr): Adjust condition to avoid infinite loop.
745
079c672a
DD
7462001-03-23 Jakub Jelinek <jakub@redhat.com>
747
748 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
749 `_' not followed by a digit is invalid.
750
a88e356a
JB
7512001-03-22 Jim Blandy <jimb@redhat.com>
752
753 * cp-demangle.c (string_list_delete): Use dyn_string_delete
754 instead of free, to free the contents as well as the string
755 structure.
756
1dffcc66
DD
7572001-03-21 Zack Weinberg <zackw@stanford.edu>
758
759 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
760 Don't default P_tmpdir to anything. Try /var/tmp before
761 /usr/tmp.
762
7632001-03-20 Zack Weinberg <zackw@stanford.edu>
764
765 * choose-temp.c: Split off make_temp_file, and the code
766 duplicated between it and choose_temp_base, into...
767 * make-temp-file.c: ... here; new file.
768
769 * Makefile.in (CFILES): Add make-temp-file.c.
770 (REQUIRED_OFILES): Add make-temp-file.o.
771
e61231f1
JB
7722001-03-20 Jim Blandy <jimb@redhat.com>
773
774 * cp-demangle.c (struct demangling_def): New fields:
775 is_constructor and is_destructor.
776 (demangling_new): Initialize them.
777 (demangle_ctor_dtor_name): Set them, if we detect a constructor
778 or destructor.
779 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
780 is_gnu_v3_mangled_dtor): New functions.
781
a9cbbe6d
DD
7822001-03-20 Jason Merrill <jason@redhat.com>
783
784 * cplus-dem.c (main): Skip initial $.
785
b1e51b3c
DD
7862001-03-15 Michael Meissner <meissner@redhat.com>
787
788 * hashtab.c (higher_prime_number): Silence warning that 4294967291
789 might be a signed integer under pre-ISO C systems.
790
8aa30e60 7912001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 792 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 793
8aa30e60
DD
794 * libiberty/lbasename.c: New file.
795 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 796
30673bf5
DD
7972001-03-06 Zack Weinberg <zackw@stanford.edu>
798
799 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
800 * configure.in: Replace all alloca logic with a simple use of
801 the above new macro.
802 * config.table: Kill *-*-beos* entry.
803 * config/mh-beos: Delete.
804 * configure, config.in: Regenerate.
fa03f0a7 805
30673bf5
DD
806 * Makefile.in (ALLOCA, HFILES): Kill.
807 (REQUIRED_OFILES): Add alloca.o.
808 (alloca.o): Depend on libiberty.h.
809 (argv.o): Don't depend on alloca-conf.h.
810 * alloca-conf.h: Delete.
811 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
812 blocks. Provide the C alloca unconditionally. Use PTR where
813 appropriate. Make i00afunc static.
814 * argv.c: Don't include alloca-conf.h.
fa03f0a7 815
5810f394
DD
8162001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
817
818 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 819
a9db032a
DD
8202001-02-16 Loren J. Rittle <ljrittle@acm.org>
821
822 * cplus-dem.c (main): Initialize style.
fa03f0a7 823
8aefe91a
DD
8242001-02-02 Phil Edwards <pme@sources.redhat.com>
825
826 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
827
bc9bf259
DD
8282001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
829
830 Add support for Java demangling under the v3 ABI:
831 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
832 (struct demangling_def): Add `style' field.
833 (demangling_new): New parameter `style'. Set it in demangling_t.
834 (demangle_prefix): Use NAMESPACE_SEPARATOR.
835 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
836 (cp_demangle): New parameter `style'. Pass it to demangling_new().
837 (main): Call cp_demangle with extra parameter.
838 (java_demangle_v3): New function.
839 (java_builtin_type_names): New. Table of primitive type names used
840 for Java demangling.
841 (demangle_builtin_type): Look up in java_builtin_type_names if doing
842 Java output.
843 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
844 demangling.
845 (long_options): Remove obsolete `java' option.
846 (main): Remove explicit handling of `java' option. Instead, pass style
847 parameter in cplus_demangle flags as gdb does.
848 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 849
f6528837
DD
8502000-12-29 DJ Delorie <dj@redhat.com>
851
852 * fnmatch.c: Make the note about the origins of this file more
853 accurate, at least until we can sync with glibc.
854 * getopt.c: Ditto.
855 * getopt1.c: Ditto.
856 * md5.c: Ditto.
857 * obstack.c: Ditto.
9d969b59 858
c6da642e
DD
8592000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
860
861 * bsearch.c: New file.
862 * configure.in (funcs): Add bsearch.
863 (AC_CHECK_FUNCS): Likewise.
864 * configure, config.in: Regenerate.
865
ae7d06ad 8662000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
867
868 * safe-ctype.c: #include "ansidecl.h".
869 * strtod.c: Likewise.
870
ae7d06ad 8712000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
872
873 * strtoul.c: Include safe-ctype.h, not ctype.h.
874
ac424eb3
DD
8752000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
876
877 * safe-ctype.c: New file.
878 * Makefile.in (CFILES): Add safe-ctype.c.
879 (REQUIRED_OFILES): Add safe-ctype.o.
880
881 * argv.c: Define ISBLANK and use it, not isspace.
882 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
883 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
884 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
885 before calling TOLOWER(c)/TOUPPER(c).
886
4415a860
DD
8872000-12-07 Mike Stump <mrs@wrs.com>
888
889 * Makefile.in (distclean): When cleaning, remove testsuite.
890
849ee224
DD
8912000-12-05 Jason Merrill <jason@redhat.com>
892
893 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
894 name before allocating the dyn_string.
895
ae7d06ad 8962000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
897
898 * cp-demangle.c: s/new_abi/v3/.
899 * cplus-dem.c: Likewise.
900 (current_demangling_style): Now auto_demangling.
901 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 902 (main): Use standard symbol chars for auto_demangling.
e49a569c 903
ae7d06ad 9042000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
905
906 * hashtab.c (higher_prime_number): Use a table, rather than a
907 seive, to find the next prime.
ae7d06ad
NC
908
9092000-11-22 H.J. Lu <hjl@gnu.org>
910
911 * cplus-dem.c (main): Handle gnat_demangling.
912
9132000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
914
915 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
916 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
917 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
918 argument form of AC_DEFINE in dummy definitions block. Use
919 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
920 in dummy block. Preload cache variables instead of bypassing
921 tests, where possible.
922 * acconfig.h: Removed.
ae7d06ad 923
2ea7befd
DD
924 * xmalloc.c (xmalloc_failed): New function, does error
925 reporting on failed allocation.
926 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 927
f1775526
HPN
9282000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
929
930 * cplus-dem.c (cplus_demangle): Fix formatting.
931 (grow_vect): Ditto.
932 (ada_demangle): Ditto.
933 (internal_cplus_demangle): Ditto.
934 (mop_up): Ditto.
935
9362000-11-21 H.J. Lu <hjl@gnu.org>
937
938 * cplus-dem.c (main): Handle java_demangling.
939
ae7d06ad 9402000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
941
942 * cplus-dem.c (grow_vect): Prototype.
943 (ada_demangle): Cast the arg of ctype macros to unsigned char.
944
5dd42ef4
HPN
9452000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
946
947 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
948 parameter `option'.
949
296731c1
DD
9502000-11-15 Kenneth Block <kenneth.block@compaq.com>
951
8944fb9d 952 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
953 be used in GCC.
954
6e53a714 9552000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 956
5dd42ef4 957 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
958 list.
959
99a4c1bd
HPN
9602000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
961
962 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
963 xcalloc depending on htab->return_allocation_failure. Return zero
964 if calloc fails.
99a4c1bd
HPN
965 (htab_create): Update comment to cover memory allocation.
966 (htab_try_create): New.
967 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 968 Update comment to cover this.
99a4c1bd 969
e0f3df8f
HPN
9702000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
971
972 * hashtab.c: Change void * to PTR where necessary.
973 (htab_create, htab_expand): Correct formatting of comment before
974 function.
975
ae7d06ad 9762000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
977
978 * cp-demangle.c (string_list_def): Add caret_position and comments.
979 (result_caret_pos): New macro.
980 (result_append_string): Rename to...
981 (result_add_string): ... this, and insert at caret position.
ae7d06ad 982 Rename throughout.
59666b35
DD
983 (result_append): Rename to...
984 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 985 throughout.
59666b35
DD
986 (result_append_char): Rename to...
987 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 988 throughout.
59666b35
DD
989 (result_append_space): Remove.
990 (string_list_new): Initialize caret position.
991 (result_add_separated_char): Use caret position.
992 (result_get_caret): New funtion.
993 (result_set_caret): Likewise.
994 (result_shift_caret): Likewise.
995 (result_previous_char_is_space): Likewise.
996 (substitution_start): Use caret position.
997 (substitution_add): Likewise.
998 (demangling_new): Initialize caret position.
999 (demangle_encoding): Use caret position.
ae7d06ad 1000 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1001 (demangle_type_ptr): Use switch statement. Handle pointers to
1002 arrays. Don't use result_append_space. Use caret position.
1003 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1004 call to demangle_array_type.
1005 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1006
ae7d06ad 10072000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1008
1009 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1010
10112000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1012
1013 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1014
10152000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1016
1017 * splay-tree.c: #include <stdio.h>.
1018
10192000-09-14 Hans-Peter Nilsson <hp@axis.com>
1020
1021 * testsuite/demangle-expected: Add two tests for anonymous
1022 namespaces.
1023 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1024
10252000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1026
1027 * splay-tree.c (splay_tree_predecessor): New function.
1028 (splay_tree_successor): Likewise.
ae7d06ad
NC
1029
10302000-09-10 Hans-Peter Nilsson <hp@axis.com>
1031
1032 * testsuite/demangle-expected: Add four tests for type_info
1033 mangling.
1034 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1035 for a non-template non-qualified type_info function or node.
1036
10372000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1038
1039 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1040
10412000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1042
1043 * md5.c: #include "ansidecl.h".
1044
10452000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1046
1047 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1048 (demangle_type): Handle substitution candidates correctly in the
1049 face of special substitutions.
ae7d06ad
NC
1050
10512000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1052
1053 * cp-demangle.c (demangle_encoding): Rename variable.
1054 (demangle_name): Rename parameter. Handle return type
1055 suppression.
1056 (demangle_nested_name): Rename parameter.
1057 (demangle_prefix): Likewise. Change return type suppression.
1058 (demangle_unqualified_name): Add parameter. Flag constructors and
1059 conversion operators.
1060 (demangle_special_name): Fix comment.
1061 (demangle_type): Rename variable.
1062 (demangle_bare_function_type): Check for missing return type and
1063 parameter.
1064 (demangle_class_enum_type): Rename parameter.
1065 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1066
10672000-08-31 DJ Delorie <dj@redhat.com>
1068
1069 * configure.in (Cygwin): special case cygwin only when we're
1070 building cygwin, not when we're hosting cygwin.
1071
10722000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1073
1074 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1075 <expression>.
ae7d06ad
NC
1076
10772000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1078
1079 * cp-demangle.c (demangle_type_ptr): Increment position past
1080 pointer and reference characters.
ae7d06ad
NC
1081
10822000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1083
1084 * cp-demangle.c (demangle_nv_offset): New function.
1085 (demangle_v_offset): Likewise.
1086 (demangle_call_offset): Likewise.
1087 (demangle_special_name): Update thunk demangling to comply with
1088 ABI changes.
ae7d06ad
NC
1089
10902000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1091
1092 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1093 (substitution_def): Remove template_parm_number.
1094 (NOT_TEMPLATE_PARM): Remove.
1095 (result_insert_string): New macro.
1096 (result_insert): Likewise.
1097 (result_insert_char): Likewise.
1098 (substitution_add): Remove last parameter. Don't store template
1099 parm number.
1100 (BFT_NO_RETURN_TYPE): Define as NULL.
1101 (demangle_encoding): Adjust call to demangle_bare_function_type.
1102 (demangle_name): Adjust substitution. Adjust call to
1103 substitution_add.
1104 (demangle_prefix): Adjust call to substitution_add.
1105 (demangle_identifier): Handle anonymous namespaces.
1106 (demangle_operator_name): Change demangling of vendor-extended
1107 operator to match ABI changes.
1108 (demangle_type_ptr): Change parameters. Make recursive. Handle
1109 substitutions here.
1110 (demangle_type): Adjust calls to demangle_template_param,
1111 substitution_add, and demangle_type_ptr. Fix substitution of
1112 templated types.
1113 (demangle_function_type): Change parameter to a pointer.
1114 (demangle_bare_function_type): Likewise. Adjust insertion point.
1115 (demangle_template_param): Remove last parameter.
1116 (demangle_expr_primary): Remove unused variable. Adjust call to
1117 demangle_template_param.
1118 (is_mangled_char): Accept `$' and `.'.
1119 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1120 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1121
11222000-08-31 Hans-Peter Nilsson <hp@axis.com>
1123
1124 * testsuite/demangle-expected: Add nine tests for
1125 underscore-after-number followed by five tests for name-signature
1126 delimiter.
1127
11282000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1129
1130 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1131
11322000-08-28 Jason Merrill <jason@redhat.com>
1133
1134 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1135 (CFILES): Add md5.c.
1136 * md5.c: New file.
1137
11382000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1139
1140 * cp-demangle.c (demangle_name): Initialize template_p in local
1141 name case. Don't re-add substitutions as candidates.
1142 (demangle_nested_name): Use <unqualified-name>.
1143 (demangle_prefix): Likewise. Don't add template names as
1144 substitution candidates twice, or re-add a substitution or the
1145 last prefix component.
1146 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1147
11482000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1149
1150 * cp-demangle.c (result_add_separated_char): Change parameter to
1151 int.
1152 (substitution_add): Don't check for duplicates. Check if
1153 previously allocated size is zero.
1154 (demangle_name): Remove duplicate check for std substitution.
1155 Clear template flag appropriately.
1156 (demangle_prefix): Remove argument to demangle_substitution.
1157 Don't check that template flag is already set.
1158 (demangle_operator_name): Add pt operator.
1159 (demangle_type): Don't treat r as built-in type. Remove argument
1160 to demangle_substitution. Fix substitution candidate mechanics.
1161 Handle <template-template-parm>s. Improve comments.
1162 (demangle_template_param): Don't handle template arg lists here.
1163 (demangle_substitution): Remove parameter.
1164 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1165
11662000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1167
1168 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1169
11702000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1171
1172 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1173 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1174 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1175
11762000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1177
1178 * cp-demangle.c (result_close_template_list): Remove function.
1179 (result_add_separated_char): New function.
1180 (result_open_template_list): New macro.
1181 (result_close_template_list): Likewise.
1182 (demangle_prefix): Don't set template_p if the
1183 prefix ends with a ctor name.
1184 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1185 (demangle_type): Check for template args after substitution.
1186 (demangle_template_args): Use result_open_template_list.
d3e85005 1187
ae7d06ad 11882000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1189
ae7d06ad 1190 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1191
ae7d06ad 11922000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1193
1194 * config/mh-openedition.h: Added -DLE370 definition.
1195
a9f34fb6
JL
11962000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1197
1198 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1199 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1200 Cast program to 'char *' in errmsg_arg assignment.
1201 (PWAIT_ERROR): Define.
1202 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1203 to DJGPP's WIF* macros.
1204
90aaccd1 12052000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1206 Jeff Law <law@cygnus.com>
90aaccd1 1207
ae7d06ad 1208 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1209
90aaccd1 1210 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1211 * rename.c: Include config.h, unistd.h
1212 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1213
6ef554e3
HPN
12142000-07-24 Hans-Peter Nilsson <hp@axis.com>
1215
1216 * cplus-dem.c (work_stuff_copy_to_from): New.
1217 (delete_non_B_K_work_stuff): New.
1218 (delete_work_stuff): New.
1219 (mop_up): Break out work_stuff partly destruction to
1220 delete_non_B_K_work_stuff.
1221 (iterate_demangle_function): New.
1222 (demangle_prefix): Call iterate_demangle_function instead of
1223 demangle_function_name. Leave handling of name-signature
1224 __-delimiters to iterate_demangle_function.
1225 (demangle_integral_value): Strip an optional
1226 following underscore cautiously. Handle negative numbers.
1227
ae7d06ad 12282000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1229
ae7d06ad 1230 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1231 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1232
ae7d06ad
NC
12332000-07-21 Alex Samuel <samuel@codesourcery.com>
1234
1235 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1236 allocating ctor mangling.
1237 (demangle_array_type): Handle empty and non-constant array length.
1238
b1233257 12392000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1240 Jeff Law <law@cygnus.com>
1241
1242 * configure.in (AC_CHECK_HEADERS): Add time.h.
1243 (AC_HEADER_TIME): Add check.
1244 * configure, config.in: Regenerate.
1245 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1246
1247 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1248 * configure, config.in: Regenerate.
1249 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1250 * strtol.c, strtoul.c: #include "config.h". Portably #include
1251 <limits.h> and/or <sys/param.h>.
1252 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1253
7d3ffcaf
JL
1254 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1255 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1256 * configure, config.in: Regenerate.
1257 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1258
b1233257
JL
1259 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1260
ae7d06ad
NC
12612000-07-21 Mike Stump <mrs@wrs.com>
1262
1263 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1264 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1265
12662000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1267
1268 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1269
1270 * setenv.c (setenv): Initialize variable `ep'.
1271
1272 * sigsetmask.c (abort): Prototype.
1273
1274 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1275 __STDC__ for stdarg.h include.
1276 (int_vasprintf): Prototype.
1277 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1278 definition. Cast `global_total_width' in comparison.
1279 (main): Prototype. Return a value.
1280
1281 * vfork.c (fork): Prototype.
1282
1283 * xexit.c: Include config.h.
1284
9adf30b2
JL
12852000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1286
1287 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1288 and print it with %u.
1289
2ed78d1b
HPN
12902000-07-17 Hans-Peter Nilsson <hp@axis.com>
1291
1292 * testsuite/regress-demangle (failed test): Show result and
1293 expected output.
1294
0473bdf7
AH
12952000-07-07 Andrew Haley <aph@cygnus.com>
1296
1297 * cplus-dem.c (main): fflush() after emitting last char before
1298 waiting for input.
1299
03d5f569
JM
13002000-06-28 Alex Samuel <samuel@codesourcery.com>
1301
1302 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1303 (demangle_name): Handle <substitution> followed by
1304 <unqualified-template-name>.
1305 (demangle_type): Follow special substitutions with
1306 <class-enum-type>
1307 (demangle_subtitution): Set template_p for special substitutions.
1308 (main): Fix typos.
ae7d06ad 1309
03d5f569
JM
13102000-06-27 Alex Samuel <samuel@codesourcery.com>
1311
1312 * cp-demangle.c (demangle_special_name): Swap base and derived
1313 class when demangling construction vtables.
1314
13152000-06-21 Alex Samuel <samuel@codesourcery.com>
1316
1317 * cp-demangle.c: Don't include ctype.h.
1318 (IS_DIGIT): New macro.
1319 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1320 instead of isdigit and isalpanum.
1321 (demangling_def): Make name and next const pointers.
1322 (STATUS_ALLOCATION_FAILED): New status code.
1323 (dyn_string_append_space): Handle failure in
1324 dyn_string_append_char.
1325 (int_to_dyn_string): Likewise. Change return value to status_t.
1326 (string_list_new): Handle failure of dyn_string_init.
1327 (result_close_template_list): Change return type to status_t.
1328 Handle failure in dyn_string_append.
1329 (result_push): Change return value to status_t. Handle failure in
1330 string_list_new. Handle failure of result_push throughout.
1331 (substitution_add): Change return value to status_t. Handle
1332 dyn_string failures. Handle failure of substitution_add
1333 throughout.
1334 (template_arg_list_new): Return NULL on allocation failure.
1335 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1336 Handle error result throughout.
1337 (result_append): Likewise.
1338 (result_append_char): Likewise.
1339 (result_append_space): Likewise.
1340 (demangling_new): Make argument a const pointer. Handle
1341 allocation failures.
1342 (demangle_template_args): Handle failure in template_arg_list_new
1343 and result_close_template_list.
1344 (demangle_discriminator): Return if int_to_dyn_string fails.
1345 (cp_demangle): Likewise.
1346 (cp_demangle_type): New function.
1347 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1348 memory allocation failure.
1349 (main): Likewise.
1350 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1351 IN_LIBGCC2.
1352 (dyn_string_init): Change return value to int. Handle
1353 RETURN_ON_ALLOCATION_FAILURE case.
1354 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1355 (dyn_string_release): Delete the dyn_string.
1356 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1357 (dyn_string_copy): Change return type to int.
1358 (dyn_string_copy_cstr): Likewise.
1359 (dyn_string_prepend): Likewise.
1360 (dyn_string_prepend_cstr): Likewise.
1361 (dyn_string_insert): Likewise.
1362 (dyn_string_insert_cstr): Likewise.
1363 (dyn_string_append): Likewise.
1364 (dyn_string_append_cstr): Likewise.
1365 (dyn_string_append_char): Likewise.
1366 (dyn_string_substring): Likewise.
ae7d06ad 1367
eb383413 13682000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1369
eb383413
L
1370 * cp-demangle.c (demangle_operator_name): Add spaces before
1371 names beginning with a letter: delete, delete[], new, new[],
1372 sizeof.
1373 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1374
eb383413
L
1375Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1376
1377 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1378
1379Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1380
1381 * cp-demangle.c (stdio.h): File included unconditionaly.
1382 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1383 * dyn-string.c (stdio.h): File included.
1384 * partition.c (partition_print): No `&' needed to take the address of
1385 a function.
1386
13872000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1388
1389 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1390
eb383413
L
1391 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1392
1393 * cp-demangle.c (demangle_char): Change parameter from char to int.
1394 (demangle_expression, demangle_expr_primary): Remove extra
1395 semi-colon in prototype.
1396
1397 * dyn-string.c (dyn_string_append_char): Change parameter from
1398 char to int.
1399
1400 * memcmp.c (memcmp): Constify.
1401
1402 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1403 __extension__.
1404
1405 * partition.c (elem_compare): Prototype. Don't cast away
1406 const-ness.
1407
1408 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1409
eb383413
L
14102000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1411
1412 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1413
1414 * cp-demangle.c: Include demangle.h.
1415 (template_arg_list_new): DeANSIfy.
1416 (cp_demangle): Make static and add prototype.
1417 (operator_code, operators): Constify.
1418 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1419
14202000-06-05 Alex Samuel <samuel@codesourcery.com>
1421
1422 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1423 unsigned char.
1424 (demangle_unqualified_name): Likewise.
1425 (demangle_number_literally): Likewise.
1426 (demangle_type): Likewise.
1427 (demangle_substitution): Likewise.
1428 (is_mangled_char): Likewise, for isalnum.
1429
14302000-06-04 Alex Samuel <samuel@codesourcery.com>
1431
1432 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1433 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1434 (cp-demangle.o): New dependency.
1435 (dyn-string.o): Likewise.
1436
1437 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1438
1439 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1440 demangler.
1441 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1442 demangling mode.
1443 (gnu_new_abi_symbol_characters): New function.
1444 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1445 file.
1446 * cp-demangle.c: New file.
ae7d06ad 1447
f03aa80d
AC
1448Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1449
1450 * floatformat.c: Add name to each floatformat field.
1451
77bfb694
JL
1452Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1453
1454 * Makefile.in (objalloc.o): Depend on config.h
1455
5c82d20a
ZW
14562000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1457
eb383413 1458 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1459 if HAVE_STRING_H.
1460 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1461 * objalloc.c: Include config.h. Include stdlib.h and don't
1462 declare malloc or free if HAVE_STDLIB_H.
1463 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1464 else declare malloc without prototype. Include string.h if
1465 HAVE_STRING_H, else declare memset without prototype. Don't
1466 include stddef.h.
1467
eb383413
L
14682000-05-23 Mike Stump <mrs@wrs.com>
1469
1470 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1471 -j3.
eb383413
L
1472
14732000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1474
1475 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1476
14772000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1478
ae7d06ad 1479 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1480 probably zero, also eliminate a warning on alpha.
1481
14822000-05-15 David Edelsohn <edelsohn@gnu.org>
1483
1484 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1485 on $(enable_shared).
1486
14872000-05-10 Jakub Jelinek <jakub@redhat.com>
1488
1489 * config.table: Use mh-sparcpic for sparc*-*-*.
1490
14912000-05-08 Nick Clifton <nickc@cygnus.com>
1492
1493 * Makefile.in (CFILES): Add strncmp.c.
1494 (NEEDED): Add strncmp.
1495
14962000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1497
eb383413
L
1498 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1499 Cast the arguments to `islower' to `unsigned char'.
1500 (print_demangler_list): Prototype.
1501
1502Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1503
1504 * sort.c (UCHAR_MAX): Provide fallback definition.
1505
15062000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1507
1508 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1509 SUBDIRS.
1510
eb383413
L
15112000-04-28 Kenneth Block <block@zk3.dec.com>
1512 Jason Merrill <jason@casey.cygnus.com>
1513
ae7d06ad
NC
1514 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1515 (cplus_demangle_set_style): New function for setting style.
1516 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1517
15182000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1519
1520 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1521
1522 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1523 (libiberty_AC_FUNC_STRNCMP): Invoke.
1524
1525 * strncmp.c: New file.
1526
1527Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1528
1529 * hashtab.c (htab_expand): Add prototype.
1530 (find_empty_slot_for_expand): Likewise.
1531
15322000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1533
1534 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1535 match prototype.
1536 (htab_expand): Cast the return value of xcalloc.
1537
15382000-04-24 Mark Mitchell <mark@codesourcery.com>
1539
1540 * hashtab.c (hash_pointer): New function.
1541 (eq_pointer): Likewise.
1542 (htab_hash_pointer): New variable.
1543 (htab_eq_pointer): Likewise.
1544
15452000-04-23 Mark Mitchell <mark@codesourcery.com>
1546
1547 * sort.c (sort_pointers): Fix endianness bugs.
1548
1549 * sort.c: New file.
1550 * Makefile.in (CFILES): Add sort.c
1551 (REQUIRED_OFILES): Add sort.o.
1552 (sort.o): New target.
1553
19be4303
JL
15542000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1555
1556 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1557 4.3BSD systems.
1558
eb383413
L
1559Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1560
1561 * hashtab.c: Various minor cleanups.
1562 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1563 (htab_find_slot): Likewise.
1564
15652000-04-16 Dave Pitts <dpitts@cozx.com>
1566
1567 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1568
afe36a78
RH
15692000-04-05 Richard Henderson <rth@cygnus.com>
1570
1571 * splay-tree.c (splay_tree_remove): New.
1572
eb383413
L
15732000-03-30 Mark Mitchell <mark@codesourcery.com>
1574
1575 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1576 codes.
1577 (htab_find_with_hash): Likewise.
1578 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1579
eb383413
L
15802000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1581
1582 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1583 unless it will be used. Rearrange loop for better
1584 optimization.
1585 (higher_prime_number): Add static prototype.
1586
b4fe2683
JM
1587Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1588
1589 * Makefile.in (partition.o): Depend on config.h
1590
15912000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1592
1593 * hashtab.c (find_empty_slot_for_expand): New function.
1594 (htab_expand): Use it instead of htab_find_slot.
1595 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1596 argument HASH.
1597 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1598 (htab_find): New wrapper function.
1599 (htab_find_slot): Likewise.
1600 (htab_traverse): Pass slot, not entry, to called function.
1601
16022000-03-09 Alex Samuel <samuel@codesourcery.com>
1603
1604 * Makefile.in (CFILES): Add partition.c.
1605 (REQUIRED_OFILES): Add partition.o.
1606 (partition.o): New rule.
1607 * partition.c: New file.
ae7d06ad 1608
b4fe2683
JM
16092000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1610
1611 * hashtab.c (htab_create): Set del_f.
1612 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1613 Use it.
1614
16152000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1616
1617 * hashtab.c: Remove debugging variables (all_searches,
1618 all_collisions, all_expansions). Delete
1619 all_hash_table_collisions.
1620 (create_hash_table, delete_hash_table, empty_hash_table,
1621 find_hash_table_entry, remove_element_from_hash_table_entry,
1622 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1623 hash_table_elements_number, hash_table_collisions): Rename to:
1624 htab_create, htab_delete, htab_empty, htab_find_slot,
1625 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1626 htab_elements, htab_collisions.
1627 (htab_find): New function, handles common case where you don't
1628 plan to add or delete an entry.
1629 (htab_expand): Don't create a whole new table, just a new
1630 entry vector.
1631 (htab_find_slot): Simplify logic.
1632
08372f14
ILT
16331999-08-03 Ian Lance Taylor <ian@zembu.com>
1634
1635 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1636 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1637
1638 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1639 $(TARGETLIB)n so it works on MSDOS.
1640 (install_to_tooldir): Likewise.
1641
9c8ac5a9
ILT
16421999-07-21 Ian Lance Taylor <ian@zembu.com>
1643
1644 From Mark Elbrecht:
1645 * makefile.dos: Remove; obsolete.
8f36e47c 1646 * configure.bat: Remove; obsolete.
9c8ac5a9 1647
0c0a36a4
ILT
16481999-07-11 Ian Lance Taylor <ian@zembu.com>
1649
1650 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1651 warning.
1652
16532000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1654
1655 * pexecute.c: Conditionally include string.h.
b4fe2683 1656 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1657
16582000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1659
1660 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1661 we're using gcc.
1662
1663 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1664
16651999-12-27 Geoff Keating <geoffk@cygnus.com>
1666
1667 * vasprintf.c (int_vasprintf): Don't re-read the format character
1668 as this mishandles strings like '%%s'.
1669
16701999-12-05 Mark Mitchell <mark@codesourcery.com>
1671
1672 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1673 rather than struct splay_tree_node.
1674 (splay_tree_insert): Use struct splay_tree_s rather than struct
1675 splay_tree.
1676
1677Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1678
1679 * hashtab.c (sys/types.h): File included.
1680
16811999-11-22 Jason Merrill <jason@casey.cygnus.com>
1682
1683 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1684 BSD license, pursuant with
1685
1686 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1687
1688Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1689
1690 * hashtab.c: Include stdio.h.
1691
1692Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1693
1694 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1695
1696Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1697
1698 * xstrdup (sys/types.h): Include this file.
1699
17001999-10-28 Nathan Sidwell <nathan@acm.org>
1701
1702 * Makefile.in (SUBDIRS): New macro.
1703 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1704 avoid multiple subdirectory cleaning.
1705 (*-subdir): Use SUBDIRS.
1706
17071999-10-25 Jim Kingdon <http://developer.redhat.com/>
1708
1709 * cplus-dem.c: Move declarations of standard_symbol_characters and
1710 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1711 warnings.
1712
17131999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1714
1715 * hashtab.c (find_hash_table_entry): When returning a
1716 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1717 (clear_hash_table_slot): New function which deletes an entry
1718 by its position in the table, not its value.
1719 (traverse_hash_table): New function which calls a hook
1720 function for every live entry in the table.
1721
17221999-10-19 Mark Mitchell <mark@codesourcery.com>
1723
1724 * cplus-dem.c (INTBUF_SIZE): New macro.
1725 (string_append_template_idx): New function.
1726 (demangle_expression): Likewise.
1727 (demangle_integral_value): Use it.
1728 (demangle_real_value): New function, split out from ...
1729 (demangle_template_value_parm): ... here. Use
1730 string_append_template_idx. Use demangle_real_value.
1731 (demangle_template): Use string_append_template_idx.
1732 (demangle_qualified): Use consume_count_with_underscores.
1733 (get_count): Tweak formatting.
1734 (do_type): Use string_append_template_idx.
b4fe2683 1735
0c0a36a4
ILT
17361999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1737
1738 * calloc.c: Add a public domain notice.
1739
1740Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1741
1742 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1743
1744Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1745
1746 * Makefile.in (CFILES): Add hashtab.c
1747 (REQUIRED_OFILES): Add hashtab.o
1748 (hashtab.o): Add dependencies.
1749 * hashtab.c: New file
1750
1751Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1752
1753 * basename.c (DIR_SEPARATOR): New macro.
1754 (DIR_SEPARATOR_2): Likewise.
1755 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1756 (IS_DIR_SEPARATOR): Likewise.
1757 (main): Handle MSDOS style pathname.
1758
17591999-10-11 Mark Mitchell <mark@codesourcery.com>
1760
1761 * cplus-dem.c (do_type): Handle pointer to member types whose
1762 enclosing classes have namespace scope.
1763
1764Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1765
1766 * config.table: Provide a backup shell for executing move-if-change.
1767
17681999-10-02 Mark Mitchell <mark@codesourcery.com>
1769
1770 * xmalloc.c (xmalloc): Fix spelling error.
1771 (xcalloc, xrealloc): Likewise.
1772
17731999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1774
1775 * cplus-dem.c (fancy_abort, demangle_integral_value,
1776 demangle_arm_hp_template, recursively_demangle,
1777 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1778 (program_name, program_version, fatal): Constify a char*.
1779 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1780 (main): Call return, not exit.
1781
17821999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1783
1784 * choose-temp.c: Remove obsolete comment about gcc.
1785 (make_temp_file): Constify a char*.
1786
1787Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1788
1789 * xmemdup.c: Include sys/types.h.
1790
17911999-09-07 Jeff Garzik <jgarzik@pobox.com>
1792
1793 * xmemdup.c: New xmemdup function.
1794 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1795
1796Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1797
b4fe2683 1798 * config.table: Add openedition target.
0c0a36a4
ILT
1799 * config/mh-openedition: New file.
1800
1801Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1802
1803 * pexecute.c (pexecute): Fill in temp_base when needed.
1804
18051999-08-31 Richard Henderson <rth@cygnus.com>
1806
1807 * getpwd.c: Check HAVE_GETCWD before defining it away.
1808
18091999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1810
1811 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1812 (REQUIRED_OFILES): Add getpwd.o.
1813 (getpwd.o): Add target.
1814
1815 * configure.in (AC_PREREQ): Bump to 2.13.
1816 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1817
1818 * getpwd.c: New file, moved here from gcc.
1819
18201999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1821
1822 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1823 comparing against a signed quantity.
1824 (arm_special): Likewise.
1825 (demangle_fund_type): Likewise.
1826 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1827 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1828 (main): Constify variable `valid_symbols'.
1829
1830Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1831
1832 * strtoul.c (strtoul): Add parentheses around && within ||.
1833
1834Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1835
1836 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1837 libdir, libsubdir and tooldir.
1838
18391999-08-01 Mark Mitchell <mark@codesourcery.com>
1840
1841 * splay-tree.c (splay_tree_insert): Return the new node.
1842
35ca97ea
RH
18431999-07-14 Richard Henderson <rth@cygnus.com>
1844
b4fe2683 1845 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1846 prototyping directly.
1847 * choose-temp.c: Conditionally include string.h.
1848
0c0a36a4
ILT
18491999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1850
1851 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1852
af32ff69
ILT
18531999-07-11 Ian Lance Taylor <ian@zembu.com>
1854
1855 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1856 warning.
1857
0c0a36a4
ILT
18581999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1859
1860 * Makefile.in (needed-list): Only include stuff we actually need
1861 for libstdc++.
1862
18631999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1864
1865 * configure.in (checkfuncs): Add gettimeofday.
1866 * config.in, configure: Regenerated.
1867
1868Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1869
1870 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1871 the test fails.
1872 * configure: Regenerate.
1873
18741999-06-10 Mike Stump <mrs@wrs.com>
1875
1876 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1877 parallel builds.
1878
18791999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1880
1881 * putenv.c: Include ansidecl.h to define `const'.
1882 * setenv.c: Likewise.
1883
1884Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1885
1886 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1887 * configure.in (funcs): Add putenv and setenv.
1888 (AC_CHECK_FUNCS): Check for putenv and setenv.
1889 * configure: Rebuilt.
1890 * putenv.c setenv.c: New files.
1891
1892 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1893 bytes of space using malloc.
1894
1895Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1896
1897 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1898 the *mangled pointer beyond the end of the string. Clean up code to
1899 match prevailing coding style.
1900
19011999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1902
1903 * tmpnam.c (L_tmpnam): Fix typo.
1904
1905Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1906
1907 * cplus-dem.c (standard_symbol_characters): Renamed from
1908 standard_symbol_alphabet. No longer modify TABLE.
1909 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1910 modify TABLE.
1911 (main): Corresponding changes. Use strchr to determine if a
1912 character is valid.
1913
e9868447
JB
19141999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1915
1916 * cplus-dem.c (main): Use table lookup to distinguish identifier
1917 characters from non-identifier characters.
1918 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1919
33fbbfbc
RH
1920Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1921
1922 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1923 * getruntime.c: Only attempt to include sys/resource.h and
1924 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1925 are defined.
1926
0c0a36a4
ILT
1927Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1928
1929 * configure.in (alloca detection): Handle alloca directly for interix.
1930 * configure: Rebuilt.
1931
1932Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1933
1934 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1935
252b5132
RH
19361999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1937
1938 Fix from Dale Hawkins:
b4fe2683 1939 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1940 reallocated properly if we use it again.
1941
1942 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1943 stricter about syntax. Always null-terminate string.
1944
c1687039
ILT
1945Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1946
1947 * configure.in (checkfuncs): Check for sbrk.
1948 * config.in: Rebuilt.
1949 * configure: Likewise.
1950 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1951
0c0a36a4
ILT
19521999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1953
1954 Fix from Marcus Daniels:
1955 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1956 identifier looking for another underscore.
1957
1958Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1959
1960 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1961 * xmalloc.c: Likewise.
1962 (xcalloc): UWIN has sbrk.
1963 (xrealloc): Fix guard macro.
1964
252b5132
RH
19651999-04-11 Richard Henderson <rth@cygnus.com>
1966
1967 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1968 or <alloca.h>.
1969 * clock.c (GNU_HZ): New definition.
1970 (clock): Use it.
1971 * getruntime.c: Likewise.
1972
1973 * config.table: Use mh-beos.
1974 * config/mh-beos: New file.
1975
0c0a36a4
ILT
19761999-04-11 Mark Mitchell <mark@codesourcery.com>
1977
1978 * cplus-dem.c (demangle_template_value_parm): Handle
1979 pointers-to-members.
1980 (do_type): Handle template parameters as qualifiers.
1981
252b5132
RH
19821999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1983
1984 * cplus-dem.c: Attempt to handle overflows in counts with some
1985 semblance of grace.
1986 (consume_count): Detect overflows. Return -1 to indicate errors,
1987 instead of zero.
1988 (demangle_template_value_parm, demangle_template): Handle change
1989 to consume_count's return convention.
1990
0c0a36a4
ILT
19911999-04-05 Tom Tromey <tromey@cygnus.com>
1992
1993 * testsuite/regress-demangle: New file.
1994 * testsuite/demangle-expected: New file.
252b5132 1995
0c0a36a4
ILT
1996 * Makefile.in (all, check, installcheck, info, install-info,
1997 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1998 distclean, maintainer-clean, realclean): Depend on corresponding
1999 `-subdir' target.
2000 (all-subdir check-subdir installcheck-subdir info-subdir
2001 install-info-subdir clean-info-subdir dvi-subdir
2002 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2003 distclean-subdir maintainer-clean-subdir): New target.
2004 * testsuite/Makefile.in: New file.
2005 * configure: Rebuilt.
2006 * configure.in: Create testsuite/Makefile.
252b5132
RH
2007
20081999-04-02 Mark Mitchell <mark@codesourcery.com>
2009
2010 * splay-tree.h (splay_tree_compare_pointers): Define.
2011
20121999-03-30 Mark Mitchell <mark@codesourcery.com>
2013
2014 * splay-tree.c (splay_tree_compare_ints): Define.
2015
20161999-03-30 Tom Tromey <tromey@cygnus.com>
2017
2018 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2019 don't advance input pointer.
2020 (demangle_class_name): If consume_count didn't find a count, do
2021 nothing. Don't bother with `strlen' sanity check; consume_count
2022 does it for us.
2023
20241999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2025
2026 From Art Haas <ahaas@neosoft.com>:
2027 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2028 when doing arm or hp style.
2029 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2030
252b5132
RH
2031Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2032
2033 * pexecute.c (__CYGWIN32__): Rename to
2034 (__CYGWIN__): this.
2035 * xmalloc.c: Likewise.
2036
2037 Changes to support i386-pc-uwin.
2038 * configure.in (*-*-uwin*): Workaround for vfork bug.
2039 * configure: Regenerate.
2040 * pexecute.c (pexecute): Be like standard Unix.
2041 (pwait): Likewise.
2042 * xmalloc.c (first_break): Define.
2043 (xmalloc_set_program_name): Use.
2044 (xmalloc): Use.
2045
2046Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2047
2048 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2049
2050Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2051
2052 * config.table: Check cygwin*, not cygwin32*.
2053
2054Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2055
2056 * Makefile.in: Change mkstemp -> mkstemps.
2057
2058Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2059
2060 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2061 * configure.in (funcs): Check for and conditionally add mkstemps to
2062 the list of functions libiberty will provide.
2063 * configure: Rebuilt.
b4fe2683 2064
252b5132
RH
2065Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2066
b4fe2683 2067 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2068 platforms that don't have HZ.
2069 * getruntime.c (HZ): Likewise.
2070
2071Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2072
2073 * Makefile.in (xstrdup.o): Depend on config.h.
2074
2075Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2076
2077 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2078 freeing it.
2079
2080Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2081
2082 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2083
2084Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2085
2086 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2087 splay-tree.o.
2088
20891999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2090
2091 * configure.in: Require autoconf 2.12.1 or higher.
2092
20931998-12-30 Michael Meissner <meissner@cygnus.com>
2094
2095 * random.c (NULL): Don't redefine NULL if it is already defined.
2096
2097Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2098
2099 * argv.c (buildargv): Cast the result of alloca in assignment.
2100
2101 * choose-temp.c: Include stdlib.h.
2102
2103 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2104 (snarf_numeric_literal): Constify first parameter.
2105 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2106 int, not a char.
252b5132
RH
2107 (demangle_qualifier): Likewise.
2108 (demangle_signature): Cast the argument of a ctype function to
2109 unsigned char.
2110 (arm_pt): Add parens around assignment used as truth value.
2111 (demangle_arm_hp_template): Constify variable `args'.
2112 (do_hpacc_template_const_value): Cast the argument of a ctype
2113 function to unsigned char.
2114 (do_hpacc_template_literal): Remove unused variable `i'.
2115 (snarf_numeric_literal): Constify parameter `args'.
2116 Cast the argument of a ctype function to unsigned char.
2117
2118 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2119 avoid ambiguous `else'.
252b5132
RH
2120
2121 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2122 `cstart' and `cend' to unsigned char. Cast the argument of macro
2123 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2124
2125 * objalloc.c (free): Add prototype.
2126
2127Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2128
2129 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2130
2131Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2132
2133 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2134 doesn't exist.
252b5132 2135 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2136
252b5132
RH
2137Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2138
2139 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2140 bumping the pointer we read from. Also prepend these codes,
2141 as we do in other places.
2142
21431998-12-18 Nick Clifton <nickc@cygnus.com>
2144
2145 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2146 'const char *' in order to match its usage when calling siblings.
2147 (snarf_numeric_literal): Make first arg 'const char **' in order
2148 to match usage.
2149
2150Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2151
2152 * choose-temp.c: Don't check IN_GCC anymore.
2153
2154 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2155 * memchr.c (memchr): Likewise.
2156 * memcpy.c (memcpy): Likewise.
2157 * memmove.c (memmove): Likewise.
2158
2159 * mkstemp.c: Don't check IN_GCC anymore.
2160 * pexecute.c: Likewise.
2161 * splay-tree.c: Likewise.
2162
2163 * strchr.c (strchr): Use `const', not `CONST'.
2164 * strrchr.c (strrchr): Likewise.
2165 * strtol.c (strtol): Likewise.
2166 * strtoul.c (strtoul): Likewise.
2167
2168Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2169 Elena Zannoni <ezannoni@cygnus.com>
2170 Stan Shebs <shebs@cygnus.com>
2171 Edith Epstein <eepstein@cygnus.com>
2172 Andres MacLeod <amacleod@cygnus.com>
2173 Satish Pai <pai@apollo.hp.com>
2174
2175 * HP aCC demangling support.
2176 * cplus-dem.c
2177 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2178 demangling correctly when -edg specified; set the demangling style
2179 when user specifies 'edg'. Set strip_underscore to
2180 prepends_underscore, if not HPUXHPPA. Set
2181 current_demangling_style to hp_demangling if HPUXHPPA. Set
2182 current demangling style correctly if the switch is hp. Read
2183 label correctly also in the HP style case.
252b5132 2184 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2185 function.
252b5132 2186 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2187 style for this case is the same as ARM.
252b5132
RH
2188 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2189 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2190 demangle_arm_pt.); check and set value of temp_start field in
2191 multiple places. Also, when ceching for end of template args,
2192 check to see if at end of static member of template class.
252b5132 2193 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2194 include template args in string defining class.
252b5132
RH
2195 (demangle_class_name): use demangel_arm_hp_template.
2196 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2197 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2198 Handle EDG_DEMANGLING style. Handle constructor and destructor
2199 ops for HP style.
252b5132 2200 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2201 styles. global destructor and constructor for HP style are same
2202 as for ARM style. Same for local variables.
252b5132
RH
2203 (demangle_qualified): handle EDG_DEMANGLING style.
2204 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2205 cases '1' - '9' : initialize the temp_start field to -1 and handle
2206 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2207 and AUTO_DEMANGLING styles. If expecting a function and managed
2208 to demangle the funct args, then handle the LUCID_DEMANGLING,
2209 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2210 class name after "Lnnn_ in HP style case. HP style too needs to
2211 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2212 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2213 value param for HP/aCC.
252b5132 2214 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2215 literal parameter for HP aCC.
252b5132
RH
2216 (recursively_demangle): new function
2217 (snarf_numeric_literal): new function.
2218 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2219 to message.
252b5132
RH
2220
2221Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2222
2223 * pexecute.c: Remove obsolete ifdefed cygwin code.
2224
2225Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2226
2227 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2228 * cplus-dem.c: Likewise. Conform to libiberty.h.
2229 * pexecute.c: Likewise.
2230 * splay-tree.c: Likewise.
2231
22321998-11-25 Mike Stump <mrs@wrs.com>
2233
2234 * Makefile.in (splay-tree.o): Add config.h dependency.
2235
2236Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2237
2238 * configure.in: Use AC_PREREQ(2.12.1).
2239
22401998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2241
b4fe2683 2242 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2243
2244Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2245
2246 * mpw.c (mpw_access): Add missing parens.
2247
2248Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2249
2250 * configure.in: Call AC_HEADER_SYS_WAIT.
2251
2252 * pexecute.c: Include sys/wait.h when !IN_GCC.
2253
2254Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2255
2256 * pexecute.c: revert back to checking old Cygwin
2257 preprocessor symbol until some time has passed.
2258
2259Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2260
2261 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2262 since it will now support similar constructs.
2263
2264Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2265
2266 * configure.in: Check for calloc.
2267
2268 * calloc.c: New file.
2269
2270 * xmalloc.c (xcalloc): New function.
2271
2272Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2273
2274 *cplus-dem.c (demangle_prefix): Use the last "__"
2275 in the mangled name when looking for the signature. This allows
2276 template names to begin with "__".
2277
22781998-11-08 Mark Mitchell <mark@markmitchell.com>
2279
2280 * cplus-dem.c (type_kind_t): Add tk_reference.
2281 (demangle_template_value_parm): Handle it.
2282 (do_type): Use it for references, instead of tk_pointer.
2283
2284 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2285 not internal_cplus_demangle.
2286
2287Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2288
2289 * choose-temp.c: Don't include gansidecl.h.
2290 * mkstemp.c: Likewise.
2291 * pexecute.c: Likewise.
2292
2293Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2294
b4fe2683
JM
2295 * configure.in: detect cygwin* instead of cygwin32*
2296 * configure: regenerate
252b5132
RH
2297
2298Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2299
2300 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2301 whether to include config.h. Possibly include unistd.h in the
2302 !IN_GCC case. Define VFORK_STRING as a printable function call
2303 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2304 defined, include vfork.h. If VMS is defined, define vfork()
2305 appropriately. Remove vfork check on USG, we're using autoconf.
2306 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2307 locally what string to use.
252b5132
RH
2308
23091998-10-26 Mark Mitchell <mark@markmitchell.com>
2310
2311 * splay-tree.c: Tweak include directives to make sure declarations of
2312 xmalloc and free are available.
2313
23141998-10-25 Mark Mitchell <mark@markmitchell.com>
2315
2316 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2317 anonymous namespaces.
2318
23191998-10-23 Mark Mitchell <mark@markmitchell.com>
2320
2321 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2322 with type_quals.
2323 (TYPE_UNQUALIFIED): New macro.
2324 (TYPE_QUAL_CONST): Likewise.
2325 (TYPE_QUAL_VOLATILE): Likewise.
2326 (TYPE_QUAL_RESTRICT): Likewise.
2327 (code_for_qualifier): New function.
2328 (qualifier_string): Likewise.
2329 (demangle_qualifier): Likewise.
2330 (internal_cplus_demangle): Use them.
2331 (demangle_signature): Likewise.
2332 (demangle_template_value_parm): Likewise.
2333 (do_type): Likewise.
2334 (demangle_fund_type)): Likewise.
2335
2336Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2337
2338 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2339 to match prototype.
2340
23411998-10-21 Mark Mitchell <mark@markmitchell.com>
2342
2343 * splay-tree.c: New file.
2344 * Makefile.in (CFILES): Add it.
2345 (REQUIRED_OFILES): Likewise.
2346 (splay-tree.o): Add dependencies.
2347
2348Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2349
2350 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2351 range of 'K' index.
2352
2353Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2354
2355 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2356
2357 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2358 `unsigned char'.
2359 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2360 comparing against one.
2361 (cplus_mangle_opname): Likewise.
2362 (demangle_integral_value): Cast argument of ctype macro to
2363 `unsigned char'.
2364 (demangle_template_value_parm): Likewise.
2365 (demangle_template): Initialize variable `bindex'. Cast the
2366 result of `strlen' to (int) when comparing against one. Remove
2367 unused variable `start_of_value_parm'.
2368 (demangle_class_name): Cast the result of `strlen' to (int) when
2369 comparing against one.
2370 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2371 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2372 when comparing against one.
2373 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2374 (get_count): Likewise.
2375 (do_type): Likewise. Cast the result of `strlen' to (int) when
2376 comparing against one.
2377 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2378 (demangle_function_name): Cast the result of `strlen' to (int)
2379 when comparing against one.
2380
2381 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2382 comparing against one.
2383
2384Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2385
b4fe2683
JM
2386 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2387 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2388 * config.in, configure: Rebuilt.
252b5132
RH
2389
2390 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2391 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2392 * config.in, configure: Rebuilt.
2393
2394Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2395
b4fe2683 2396 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2397
2398Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2399
2400 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2401
2402Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2403
2404 * Merge egcs & devo libiberty.
2405
2406