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