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