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