]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* xmalloc.c (xmalloc_fail): Clarify error message further.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
af18e951
NB
12002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2
3 * xmalloc.c (xmalloc_fail): Clarify error message further.
4
d8d7c3c3
NB
52002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
6
7 * xmalloc.c (xmalloc_fail): Clarify error message.
8
00c2f96f
JB
92002-02-22 Jim Blandy <jimb@redhat.com>
10
11 * splay-tree.c (splay_tree_xmalloc_allocate,
12 splay_tree_xmalloc_deallocate): New functions.
13 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
14 above functions and a dummy data pointer.
15 (splay_tree_new_with_allocator): New function.
16 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
17 splay_tree_remove): Use the splay tree's allocation and
18 deallocation functions.
19
b1c1a22f
SS
202002-02-19 Scott Snyder <snyder@fnal.gov>
21
22 * testsuite/demangle-expected: Add test case for infinite loop in
23 demangler.
24 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
25 if do_type() doesn't make any progress --- prevents an infinite
26 loop.
27
336669e7
CW
282002-02-18 Carlo Wood <carlo@gnu.org>
29
30 PR c++/5390
31 * cplus-dem.c (demangle_integral_value): Accept multi-digit
32 numbers that do not start with an underscore; This is needed
33 for integer template parameters. This doesn't break anything
34 because multi-digit numbers are never followed by a digit.
35 * testsuite/demangle-expected: Corrected all mangled test
36 cases with multi-digit template parameters: g++ 2.95.x does
37 not generate underscores around these parameters.
38
c13db5d1
JM
392002-02-05 Jason Merrill <jason@redhat.com>
40
41 * cplus-dem.c (flags): Add DMGL_VERBOSE
42 (cplus_demangle_v3_p): Remove.
43 (demangle_it): Add DMGL_TYPES to passed flags.
44 * cp-demangle.c (cplus_demangle_v3_all): Remove.
45 (cplus_demangle_v3_type): Remove.
46 (cplus_demangle_v3): Add options parm.
47
d74697b8
L
482002-02-02 H.J. Lu (hjl@gnu.org)
49
50 * cp-demangle.c (cp_demangle_type): Do not protect with
51 IN_LIBGCC2.
52 (cplus_demangle_v3_all): New.
53 (cplus_demangle_v3): Call cplus_demangle_v3_all.
54 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
55
56 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
57 Initialized to cplus_demangle_v3.
58 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
59 of cplus_demangle_v3.
60 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
61 command line symbol.
62
63 * testsuite/regress-demangle: Pass the mangled name at the
64 command line.
65
3a441e38
L
662002-02-01 H.J. Lu <hjl@gnu.org>
67
68 * cp-demangle.c (cp_demangle_type): Call demangling_new with
69 DMGL_GNU_V3.
70
6d747e63
PE
712002-01-31 Phil Edwards <pme@gcc.gnu.org>
72
73 * cp-demangle.c: Revert yesterday's change.
74
46af757b
AM
752002-01-31 Adam Megacz <adam@xwt.org>
76
77 * gcc/libiberty/configure.in: Treat mingw the same as cywin
78 wrt HAVE_SYS_ERRLIST.
79
46ab74b1
PE
802002-01-30 Phil Edwards <pme@gcc.gnu.org>
81
82 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
83 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
84 cp_demangle_type.
85 * testsuite/demangle-expected: New gnu-v3 test.
86
e64d0626
MV
872002-01-22 Momchil Velikov <velco@fadata.bg>
88
89 * configure.in (variable detection): Use arrays of unspecified
90 size instead of plain integers.
91
9ce3f7e5
DD
922002-01-18 DJ Delorie <dj@redhat.com>
93
94 * Makefile.in (TESTLIB): New. This library is for future
95 testsuites.
96 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
97 break down by letter.
98 (REQUIRED_OFILES): List long-to-compile files first.
99 (maint-deps): New, target for updating dependencies.
100 (dependencies): Update.
101 * maint-tool: Add dependency-generating option.
102 * configure.in: Check for _doprnt even if we're not providing it.
103 * configure: Regenerate.
104
105 * _doprnt.c: Modifications to allow compiling on any platform.
106 * copysign.c: Likewise.
107 * putenv.c: Likewise.
108 * setenv.c: Likewise.
109 * vsprintf.c: Likewise.
110
0e83ceb1
DR
1112002-01-15 Douglas B Rupp <rupp@gnat.com>
112
113 * mkstemps.c (mkstemps): On VMS, open temp file with option
114 that causes it to be deleted when closed.
115
adddf5bf
KG
1162002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
117
5e65297b
KG
118 * cp-demangle.c (long_options): Const-ify.
119 * cplus-dem.c (long_options): Likewise.
120
adddf5bf
KG
121 * cplus-dem.c (mystrstr): Delete. All callers changed to use
122 strstr instead.
123
a4219437
IR
1242001-12-31 Ira Ruben <ira@apple.com>
125
126 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
127 * configure: Regenerated.
af328d8d
DR
128
1292001-12-24 Douglas B. Rupp <rupp@gnat.com>
130
131 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
132 * configure: Regenerated.
a4219437 133
63de15a4
CR
1342001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
135
136 PR other/2719
137 * cplus-dem.c (consume_count): Treat negative count as an error.
138 * testsuite/demangle-expected: Added testcase.
139
ee262b6f
DR
140Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
141
142 * configure.in: Hardcode that vfork works on VMS host.
143 * configure: Regenerated.
144
d06ba3c7
RH
1452001-12-06 Richard Henderson <rth@redhat.com>
146
147 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
148 (cplus_demangle): Support no_demangling.
149
e490616e
ZW
1502001-11-27 Zack Weinberg <zack@codesourcery.com>
151
152 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
153 in libiberty context. Fix typo in leading comment.
154 * configure.in: Fix various AC_DEFINEs so autoheader works.
155 If any of vprintf, vsprintf, vfprintf is missing from libc,
156 then AC_REPLACE_FUNCS(_doprnt).
157
97e620cf 1582001-11-26 DJ Delorie <dj@redhat.com>
e490616e 159 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
160
161 * Makefile.in (stamp-h): Depend on Makefile for proper
162 serialization.
163 (*-subdir): Depend on config.h for proper serialization.
164
c3bb7df0
DD
1652001-11-26 DJ Delorie <dj@redhat.com>
166
167 * configure.in: Check for alloca.h (for regex.c and putenv.c).
168 * configure: Regenerate.
169 * config.h: Add HAVE_ALLOCA_H.
170
23850d35
KG
1712001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
172
2c47b56b
KG
173 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
174 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
175 is available.
23850d35 176
7ddfb651
JL
177Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
178
d3982b71
JL
179 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
180 * configure.in (HAVE_UINTPTR_T): Test for system defining
181 uintptr_t and define HAVE_UINTPTR_T appropriately.
182 * regex.c (uintptr_t): Do not provide a definition if the
183 system provided one.
184
7ddfb651
JL
185 * regex.c (PREFIX): Provide an alternate definition for
186 non-ANSI/ISO compilers.
187 (ARG_PREFIX): Likewise.
188
2e683037
JM
1892001-11-12 Jim Meyering <meyering@lucent.com>
190
191 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
192 this code would end up calling gettext even in packages built
193 with --disable-nls.
194 * getopt.c (_): Likewise.
195 * regex.c (_): Likewise.
196
f749bd83
AM
1972001-11-03 Alan Modra <amodra@bigpond.net.au>
198
199 * configure.in: Cope with missing makeinfo.
55a10d7c 200 * configure: Regenerate.
f749bd83 201
26ad2982
KG
2022001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
203
e5969ba6
KG
204 * hex.c (hex_init): Provide empty stub.
205
26ad2982
KG
206 * hex.c (hex_init): Delete.
207 (_hex_value): Const-ify and initialize at compile-time.
208
afb649d5
L
2092001-10-19 H.J. Lu <hjl@gnu.org>
210
211 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
212 necessary.
213
5bed56d9
DD
2142001-10-17 DJ Delorie <dj@redhat.com>
215
216 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
217 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 218 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
219 Improve manual formatting.
220 * functions.texi: Regenerate.
221
aac04c15
DD
2222001-10-15 DJ Delorie <dj@redhat.com>
223
224 * Makefile.in (TEXIFILES): Add fnmatch.txh.
225 (maint-undoc): New.
226 maint-tool: Add "undoc" tool.
227 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
228 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
229 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
230 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
231 documentation.
232 * fnmatch.txh: New.
233 * functions.texi: Regenerate.
fae8182a 234
0e4e9e8f
JM
2352001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
236
237 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
238 * strtod.c: Use "ISO C" instead of "ANSI C".
239 * functions.texi: Regenerate.
240
7f8fa05d
JM
2412001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
242
243 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
244 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
245 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
246 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
247 spelling. Give names to function arguments in documentation. Use
248 (void) prototypes in documentation.
249 * functions.texi: Regenerate.
250
0be6abca
KG
2512001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
252
253 * argv.c (buildargv, tests, main): Const-ify.
254 * cp-demangle.c (operator_code): Likewise.
255 * cplus-dem.c (optable, libiberty_demanglers,
256 cplus_demangle_set_style, cplus_demangle_name_to_style,
257 print_demangler_list): Likewise.
258 * hashtab.c (higher_prime_number): Likewise.
259 * strcasecmp.c (charmap): Likewise.
260 * strerror.c (error_info, strerror, main): Likewise.
261 * strncasecmp.c (charmap): Likewise.
262 * strsignal.c (signal_info): Likewise.
263
0e30ffc5
DD
2642001-09-29 DJ Delorie <dj@redhat.com>
265
266 * configure: Regenerate.
267
576fb787
KG
2682001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
269
270 * concat.c: Include stdlib.h.
271
e922f978
EZ
2722001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
273
274 * libiberty.texi: (Top level): Add syncodeindex pg. Add
275 @dircategory and @direntry directives. Add @finalout.
276 (many nodes): Lose the next,prev,up pointers on the @nide line.
277 (Using, Supplemental Functions, Replacement Functions): Fix
278 markup.
279 (Functions): Move around, to allow makeinfo to build the manual
280 without next,prev,up pointers in thye node lines.
281 (Licenses): Fix typos.
282
283 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
284 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
285 * functions.texi: Regenerate.
286
287 * copying-lib.texi: Lose the next,prev,up pointers on the @node
288 line.
289
ae9092da
DD
2902001-09-27 DJ Delorie <dj@redhat.com>
291
292 * configure.in: Don't use in-tree texinfo, because libiberty must
293 be built before it. Check for makeinfo version 4 or higher.
294 * functions.texi: Regenerate.
fae8182a 295
aaa5f039
DD
2962001-09-20 DJ Delorie <dj@redhat.com>
297 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 298
aaa5f039
DD
299 * configure.in (MAKEINFO, PERL): Detect these.
300 (--enable-maintainer-mode): Add.
301 * configure: Regenerate.
302 * Makefile.in (MAKEINFO, PERL): Define.
303 (libiberty.info, libiberty.dvi, libiberty.html): New.
304 (CFILES): Add bsearch.c.
305 (CONFIGURED_OFILES): New, list of objects configure might add.
306 (maint-missing, maint-buildall): New, for maintainers only.
307 (clean, mostlyclean): Add info/dvi/html files.
308 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
309 * gather-docs: New, for maintainers.
310 * maint-tool: New, for maintainers.
311 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
312 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
313 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
314 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
315 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
316 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
317 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
318 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
319 documentation.
fae8182a 320
c1766881
KG
3212001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
322
323 * concat.c (reconcat): Fix for traditional C.
324
ad43d46f
KG
3252001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
326
327 * concat.c (reconcat): New function.
328
c1d49704
KG
3292001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
330
c793eea7
KG
331 * concat.c (vconcat_length, vconcat_copy, concat_length,
332 concat_copy, concat_copy2): New functions.
333 (concat): Use vconcat_length/vconcat_copy.
334
c1d49704
KG
335 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
336 Define.
337
7a98d9b2
KG
3382001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
339
340 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
341 VA_FIXEDARG & VA_CLOSE.
fae8182a 342
7a98d9b2
KG
343 * vasprintf.c: Check HAVE_STRING_H when including string.h.
344 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
345 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
346
e2dff3f2
KG
3472001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
348
349 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
350
d0708dc1
UD
3512001-08-23 Ulrich Drepper <drepper@redhat.com>
352
353 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
354
3552001-08-23 Ulrich Drepper <drepper@redhat.com>
356
357 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
358 instead of mbrtowc.
359 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
360 wcslen, and __wcscoll instead of wcscoll.
361
ffb9435b
MK
3622001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
363
364 * fibheap.c (fibheap_init, fibnode_init): Remove.
365 (fibheap_new, fibnode_new): Use xcalloc to allocate and
366 initialize memory.
367 (fibheap_insert): Remove check for node allocation failure.
368
f379eac3
RH
3692001-08-21 Richard Henderson <rth@redhat.com>
370
371 * Makefile.in (fibheap.o): Depend on config.h.
372 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
373 functions for inlining.
374
b1c45ae4
CF
375Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
376
377 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
378 hosting on cygwin.
379 * configure: Regenerate.
380
0310e5ac
AC
3812001-08-20 Andrew Cagney <ac131313@redhat.com>
382
383 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
384 HARRIS_FLOAT_FORMAT.
385 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
386 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
387 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
388 (floatformat_m88110_harris_ext): New float formats.
389
8c23e0a4
DB
3902001-08-20 Daniel Berlin <dan@cgsoftware.com>
391
392 * fibheap.c: New file. Fibonacci heap.
393
394 * Makefile.in (CFILES): Add fibheap.c.
395 (REQUIRED_OFILES): Add fibheap.o.
396 (fibheap.o): Add dependencies for fibheap.o.
397
91625004
CF
3982001-08-17 Christopher Faylor <cgf@cygnus.com>
399
400 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
401 * configure: Regenerate.
402
9e0ba685
RH
4032001-08-16 Richard Henderson <rth@redhat.com>
404
405 * hashtab.c (htab_hash_string): New.
406
d80dedbe
AC
4072001-08-13 Andrew Cagney <ac131313@redhat.com>
408
409 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
410 name.
411
ccea0d85
IH
4122001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
413
414 * regex.c (wcs_regex_compile): Use appropriate string
415 to compare with collating element.
416 Fix the padding for the alignment.
417
b0e9bc8c 4182001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
419
420 * lbasename.c (lbasename): Change function definition to return a
421 const char pointer.
422
056400f1
JM
4232001-08-07 Jason Merrill <jason_merrill@redhat.com>
424
425 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
426 for".
427
4e627c41
RH
4282001-08-03 Richard Henderson <rth@redhat.com>
429
430 * Makefile.in (concat.o): Depend on config.h.
431
b6a2f884
AJ
4322001-07-30 Andreas Jaeger <aj@suse.de>
433
434 * concat.c: Include "config.h".
435
c4b9cfe0
AJ
4362001-07-30 Andreas Jaeger <aj@suse.de>
437
438 * regex.c: Declare wcs functions only if compiling with
439 MBS_SUPPORT.
440 Don't use #elif for traditional C.
441
4422001-07-23 Ulrich Drepper <drepper@redhat.com>
443
444 * regex.c: Revamp memory allocation for WCHAR functions to
445 not use too much stack.
446
4472001-07-30 Andreas Jaeger <aj@suse.de>
448
449 * regex.c: Declare wcs functions only if compiling with
450 MBS_SUPPORT.
451 Don't use #elif for traditional C.
452
2cf50fd3
DJ
4532001-07-25 Daniel Jacobowitz <drow@mvista.com>
454
455 * Makefile.in (regex.o): Add dependency on config.h.
456
27ffc806
DD
4572001-07-18 Andreas Schwab <schwab@suse.de>
458
459 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
460 underscore character.
461
4622001-07-18 Ulrich Drepper <drepper@redhat.com>
463
464 * regex.c: Limit string length printed in debug messages to 100
465 chars.
466
4672001-07-18 Andreas Jaeger <aj@suse.de>
468
469 * regex.c: Place under LGPL version 2.1.
470
dd771632
JJ
4712001-07-10 Jeff Johnston <jjohnstn@redhat.com>
472
473 * Makefile.in: Add support for regex code.
474 * regex.c: New file.
475
29650b2b
MK
4762001-07-05 Mark Klein <mklein@dis.com>
477
478 * Makefile.in: Add ffs.c dependency.
479 * configure.in: Add ffs.c.
480 * ffs.c: New file.
481
c8b28221
RH
4822001-06-18 Richard Henderson <rth@redhat.com>
483
484 * concat.c: Include <sys/types.h>.
485
473c2d0b
LR
4862001-06-11 Loren J. Rittle <ljrittle@acm.org>
487
a4c03da2 488 bootstrap/3106
473c2d0b
LR
489 * strerror.c (sys_nerr): Hide the OS header version.
490 * strsignal.c (sys_nsig): Likewise.
491
0bdcca68
RH
4922001-06-10 Richard Henderson <rth@redhat.com>
493
494 * concat.c: Include string.h. Fix int vs size_t usage.
495 Simplify the iteration loops. Use memcpy.
496
6de133d3
MK
4972001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
498
499 * partition.c: Fix misspelling of `implementation'.
500
8a153288
TS
5012001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
502
503 * md5.c (md5_init_ctx): Declare constants as unsigned.
504 (md5_process_block): Likewise.
505
641b2721
ZW
5062001-05-07 Zack Weinberg <zackw@stanford.edu>
507
508 * cp-demangle.c (demangle_v3_with_details,
509 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
510 function definition.
511 * ternary.c: Use K+R style function definitions. Use PTR, not
512 void *. Make arguments constant where possible.
513
5cdba4ff
MM
5142001-05-07 Mark Mitchell <mark@codesourcery.com>
515
516 * splay-tree.h (splay_tree_max): New function.
517 (splay_tree_min): Likewise.
518
9dab060e
DB
5192001-04-15 Daniel Berlin <dan@cgsoftware.com>
520
521 * ternary.c: New file - Ternary search tree implementation.
522
523 * Makefile.in: Add ternary.o, and ternary.c dependencies.
524
d02af173
ZW
5252001-04-03 Zack Weinberg <zackw@stanford.edu>
526
527 * make-temp-file.c (try): Inline.
528
94b68558
RH
5292001-02-28 Richard Henderson <rth@redhat.com>
530
531 * Makefile.in (make-temp-file.o): Depend on config.h.
532
27f66c0b
KG
5332001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
534
535 * memchr.c (memchr): Adjust condition to avoid infinite loop.
536
f1a0345c
JJ
5372001-03-23 Jakub Jelinek <jakub@redhat.com>
538
539 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
540 `_' not followed by a digit is invalid.
541
a519fba6
JB
5422001-03-22 Jim Blandy <jimb@redhat.com>
543
544 * cp-demangle.c (string_list_delete): Use dyn_string_delete
545 instead of free, to free the contents as well as the string
546 structure.
547
49ee944b
ZW
5482001-03-21 Zack Weinberg <zackw@stanford.edu>
549
550 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
551 Don't default P_tmpdir to anything. Try /var/tmp before
552 /usr/tmp.
553
33437dc7
ZW
5542001-03-20 Zack Weinberg <zackw@stanford.edu>
555
556 * choose-temp.c: Split off make_temp_file, and the code
557 duplicated between it and choose_temp_base, into...
558 * make-temp-file.c: ... here; new file.
559
560 * Makefile.in (CFILES): Add make-temp-file.c.
561 (REQUIRED_OFILES): Add make-temp-file.o.
562
7dce2eff
JB
5632001-03-20 Jim Blandy <jimb@redhat.com>
564
565 * cp-demangle.c (struct demangling_def): New fields:
566 is_constructor and is_destructor.
567 (demangling_new): Initialize them.
568 (demangle_ctor_dtor_name): Set them, if we detect a constructor
569 or destructor.
570 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
571 is_gnu_v3_mangled_dtor): New functions.
572
e03a61f1
JM
5732001-03-20 Jason Merrill <jason@redhat.com>
574
575 * cplus-dem.c (main): Skip initial $.
576
8860ddab
MM
5772001-03-15 Michael Meissner <meissner@redhat.com>
578
579 * hashtab.c (higher_prime_number): Silence warning that 4294967291
580 might be a signed integer under pre-ISO C systems.
581
2b757d51
NB
5822001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
583 John David Anglin <dave@hiauly1.hia.nrc.ca>
584
585 * libiberty/lbasename.c: New file.
586 * libiberty/Makefile.in: Update for lbasename.
587
1f50aafb
ZW
5882001-03-06 Zack Weinberg <zackw@stanford.edu>
589
590 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
591 * configure.in: Replace all alloca logic with a simple use of
592 the above new macro.
593 * config.table: Kill *-*-beos* entry.
594 * config/mh-beos: Delete.
595 * configure, config.in: Regenerate.
596
597 * Makefile.in (ALLOCA, HFILES): Kill.
598 (REQUIRED_OFILES): Add alloca.o.
599 (alloca.o): Depend on libiberty.h.
600 (argv.o): Don't depend on alloca-conf.h.
601 * alloca-conf.h: Delete.
602 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
603 blocks. Provide the C alloca unconditionally. Use PTR where
604 appropriate. Make i00afunc static.
605 * argv.c: Don't include alloca-conf.h.
606
d9fd5aae
JDA
6072001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
608
609 * cplus-dem.c (main): Cast enum style to int.
610
4031ed65
LR
6112001-02-16 Loren J. Rittle <ljrittle@acm.org>
612
613 * cplus-dem.c (main): Initialize style.
614
2ca46e8a
PE
6152001-02-02 Phil Edwards <pme@sources.redhat.com>
616
617 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
618
3b60dd8e
BM
6192001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
620
621 Add support for Java demangling under the v3 ABI:
622 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
623 (struct demangling_def): Add `style' field.
624 (demangling_new): New parameter `style'. Set it in demangling_t.
625 (demangle_prefix): Use NAMESPACE_SEPARATOR.
626 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
627 (cp_demangle): New parameter `style'. Pass it to demangling_new().
628 (main): Call cp_demangle with extra parameter.
629 (java_demangle_v3): New function.
630 (java_builtin_type_names): New. Table of primitive type names used
631 for Java demangling.
632 (demangle_builtin_type): Look up in java_builtin_type_names if doing
633 Java output.
1f50aafb 634 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
635 demangling.
636 (long_options): Remove obsolete `java' option.
637 (main): Remove explicit handling of `java' option. Instead, pass style
638 parameter in cplus_demangle flags as gdb does.
639 * testsuite/demangle.expected: Add some Java test cases.
640
584932e9
DD
6412000-12-29 DJ Delorie <dj@redhat.com>
642
643 * fnmatch.c: Make the note about the origins of this file more
644 accurate, at least until we can sync with glibc.
645 * getopt.c: Ditto.
646 * getopt1.c: Ditto.
647 * md5.c: Ditto.
648 * obstack.c: Ditto.
649
dac45916
MS
6502000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
651
652 * bsearch.c: New file.
653 * configure.in (funcs): Add bsearch.
654 (AC_CHECK_FUNCS): Likewise.
655 * configure, config.in: Regenerate.
656
a8e4a997
MS
6572000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
658
659 * safe-ctype.c: #include "ansidecl.h".
660 * strtod.c: Likewise.
661
75444da7
MS
6622000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
663
664 * strtoul.c: Include safe-ctype.h, not ctype.h.
665
f6bbde28
ZW
6662000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
667
668 * safe-ctype.c: New file.
669 * Makefile.in (CFILES): Add safe-ctype.c.
670 (REQUIRED_OFILES): Add safe-ctype.o.
671
672 * argv.c: Define ISBLANK and use it, not isspace.
673 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
674 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
675 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
676 before calling TOLOWER(c)/TOUPPER(c).
677
6c1ce62b 6782000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
679
680 * Makefile.in (distclean): When cleaning, remove testsuite.
681
b5d1497d
JM
6822000-12-05 Jason Merrill <jason@redhat.com>
683
684 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
685 name before allocating the dyn_string.
686
c6e13630
JM
6872000-12-04 Jason Merrill <jason@redhat.com>
688
689 * cp-demangle.c: s/new_abi/v3/.
690 * cplus-dem.c: Likewise.
691 (current_demangling_style): Now auto_demangling.
692 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 693 (main): Use standard symbol chars for auto_demangling.
c6e13630 694
a4c9b97e
MM
6952000-11-26 Mark Mitchell <mark@codesourcery.com>
696
697 * hashtab.c (higher_prime_number): Use a table, rather than a
698 seive, to find the next prime.
699
3b3bd9a7
L
7002000-11-22 H.J. Lu <hjl@gnu.org>
701
702 * cplus-dem.c (main): Handle gnat_demangling.
703
d1209685
ZW
7042000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
705
706 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
707 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
708 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
709 argument form of AC_DEFINE in dummy definitions block. Use
710 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
711 in dummy block. Preload cache variables instead of bypassing
712 tests, where possible.
713 * acconfig.h: Removed.
714
715 * xmalloc.c (xmalloc_failed): New function, does error
716 reporting on failed allocation.
717 (xmalloc, xcalloc, xrealloc): Use it.
718
cf183ac2
HPN
7192000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
720
721 * cplus-dem.c (cplus_demangle): Fix formatting.
722 (grow_vect): Ditto.
723 (ada_demangle): Ditto.
724 (internal_cplus_demangle): Ditto.
725 (mop_up): Ditto.
726
7272000-11-21 H.J. Lu <hjl@gnu.org>
728
729 * cplus-dem.c (main): Handle java_demangling.
730
8bcc782c
KG
7312000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
732
733 * cplus-dem.c (grow_vect): Prototype.
734 (ada_demangle): Cast the arg of ctype macros to unsigned char.
735
29120f44
HPN
7362000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
737
738 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
739 parameter `option'.
740
0437a5a8
KB
7412000-11-15 Kenneth Block <kenneth.block@compaq.com>
742
9e038f71 743 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
744 be used in GCC.
745
eab0c1ab 7462000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 747
29120f44 748 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
749 list.
750
d50d20ec
HPN
7512000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
752
753 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
754 xcalloc depending on htab->return_allocation_failure. Return zero
755 if calloc fails.
d50d20ec
HPN
756 (htab_create): Update comment to cover memory allocation.
757 (htab_try_create): New.
758 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 759 Update comment to cover this.
d50d20ec 760
35e9340f
HPN
7612000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
762
763 * hashtab.c: Change void * to PTR where necessary.
764 (htab_create, htab_expand): Correct formatting of comment before
765 function.
766
ea343d1a 7672000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
768
769 * cp-demangle.c (string_list_def): Add caret_position and comments.
770 (result_caret_pos): New macro.
771 (result_append_string): Rename to...
772 (result_add_string): ... this, and insert at caret position.
d1209685 773 Rename throughout.
0870bfd6
AS
774 (result_append): Rename to...
775 (result_add): ... this, and insert at caret position. Rename
d1209685 776 throughout.
0870bfd6
AS
777 (result_append_char): Rename to...
778 (result_add_char): ... this, and insert at caret position. Rename
d1209685 779 throughout.
0870bfd6
AS
780 (result_append_space): Remove.
781 (string_list_new): Initialize caret position.
782 (result_add_separated_char): Use caret position.
783 (result_get_caret): New funtion.
784 (result_set_caret): Likewise.
785 (result_shift_caret): Likewise.
786 (result_previous_char_is_space): Likewise.
787 (substitution_start): Use caret position.
788 (substitution_add): Likewise.
789 (demangling_new): Initialize caret position.
790 (demangle_encoding): Use caret position.
d1209685 791 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
792 (demangle_type_ptr): Use switch statement. Handle pointers to
793 arrays. Don't use result_append_space. Use caret position.
794 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
795 call to demangle_array_type.
796 (demangle_array_type): Add parameter to handle pointers to arrays.
797
f15b9af9
MM
7982000-10-01 Mark Mitchell <mark@codesourcery.com>
799
800 * splay-tree.c (splay_tree_insert): Fix formatting.
801
8f17b5c5
MM
8022000-09-16 Mark Mitchell <mark@codesourcery.com>
803
804 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
805
4eaa189a
MS
8062000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
807
808 * splay-tree.c: #include <stdio.h>.
809
29791078
HPN
8102000-09-14 Hans-Peter Nilsson <hp@axis.com>
811
812 * testsuite/demangle-expected: Add two tests for anonymous
813 namespaces.
814 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
815
2c9f4db7
MM
8162000-09-10 Mark Mitchell <mark@codesourcery.com>
817
818 * splay-tree.c (splay_tree_predecessor): New function.
819 (splay_tree_successor): Likewise.
820
bb22da4b
HPN
8212000-09-10 Hans-Peter Nilsson <hp@axis.com>
822
823 * testsuite/demangle-expected: Add four tests for type_info
824 mangling.
bb22da4b
HPN
825 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
826 for a non-template non-qualified type_info function or node.
827
759e8187
AS
8282000-09-08 Alex Samuel <samuel@codesourcery.com>
829
830 * cp-demangle.c: Fix copyright banner.
831
2ecd81ef
MS
8322000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
833
834 * md5.c: #include "ansidecl.h".
835
d93998ec
AS
8362000-09-06 Alex Samuel <samuel@codesourcery.com>
837
838 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
839 (demangle_type): Handle substitution candidates correctly in the
840 face of special substitutions.
841
1056d228
AS
8422000-09-05 Alex Samuel <samuel@codesourcery.com>
843
844 * cp-demangle.c (demangle_encoding): Rename variable.
845 (demangle_name): Rename parameter. Handle return type
846 suppression.
847 (demangle_nested_name): Rename parameter.
848 (demangle_prefix): Likewise. Change return type suppression.
849 (demangle_unqualified_name): Add parameter. Flag constructors and
850 conversion operators.
851 (demangle_special_name): Fix comment.
852 (demangle_type): Rename variable.
853 (demangle_bare_function_type): Check for missing return type and
d1209685 854 parameter.
1056d228
AS
855 (demangle_class_enum_type): Rename parameter.
856 (demangle_discriminator): Fix misspelling in comment.
857
2f31ed7e
DD
8582000-08-31 DJ Delorie <dj@redhat.com>
859
860 * configure.in (Cygwin): special case cygwin only when we're
861 building cygwin, not when we're hosting cygwin.
862
02bcb9c6
AS
8632000-09-04 Alex Samuel <samuel@codesourcery.com>
864
865 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
866 <expression>.
867
aee749cf
AS
8682000-09-04 Alex Samuel <samuel@codesourcery.com>
869
870 * cp-demangle.c (demangle_type_ptr): Increment position past
871 pointer and reference characters.
872
92a16bbe
AS
8732000-09-04 Alex Samuel <samuel@codesourcery.com>
874
875 * cp-demangle.c (demangle_nv_offset): New function.
876 (demangle_v_offset): Likewise.
877 (demangle_call_offset): Likewise.
878 (demangle_special_name): Update thunk demangling to comply with
879 ABI changes.
d1209685 880
31e0ab1f
AS
8812000-09-03 Alex Samuel <samuel@codesourcery.com>
882
883 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
884 (substitution_def): Remove template_parm_number.
885 (NOT_TEMPLATE_PARM): Remove.
886 (result_insert_string): New macro.
887 (result_insert): Likewise.
888 (result_insert_char): Likewise.
889 (substitution_add): Remove last parameter. Don't store template
d1209685 890 parm number.
31e0ab1f
AS
891 (BFT_NO_RETURN_TYPE): Define as NULL.
892 (demangle_encoding): Adjust call to demangle_bare_function_type.
893 (demangle_name): Adjust substitution. Adjust call to
d1209685 894 substitution_add.
31e0ab1f
AS
895 (demangle_prefix): Adjust call to substitution_add.
896 (demangle_identifier): Handle anonymous namespaces.
897 (demangle_operator_name): Change demangling of vendor-extended
898 operator to match ABI changes.
899 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 900 substitutions here.
31e0ab1f
AS
901 (demangle_type): Adjust calls to demangle_template_param,
902 substitution_add, and demangle_type_ptr. Fix substitution of
903 templated types.
904 (demangle_function_type): Change parameter to a pointer.
905 (demangle_bare_function_type): Likewise. Adjust insertion point.
906 (demangle_template_param): Remove last parameter.
907 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 908 demangle_template_param.
31e0ab1f
AS
909 (is_mangled_char): Accept `$' and `.'.
910 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
911 * dyn-string.c (dyn_string_insert_char): New function.
912
ccbc3eb7
HPN
9132000-08-31 Hans-Peter Nilsson <hp@axis.com>
914
915 * testsuite/demangle-expected: Add nine tests for
916 underscore-after-number followed by five tests for name-signature
917 delimiter.
918
53dce582
RH
9192000-08-28 Richard Henderson <rth@cygnus.com>
920
921 * Makefile.in (md5.o): Depend on config.h.
922
881c6935
JM
9232000-08-28 Jason Merrill <jason@redhat.com>
924
925 * Makefile.in (REQUIRED_OFILES): Add md5.o.
926 (CFILES): Add md5.c.
927 * md5.c: New file.
928
a440fd19
AS
9292000-08-27 Alex Samuel <samuel@codesourcery.com>
930
931 * cp-demangle.c (demangle_name): Initialize template_p in local
932 name case. Don't re-add substitutions as candidates.
933 (demangle_nested_name): Use <unqualified-name>.
934 (demangle_prefix): Likewise. Don't add template names as
935 substitution candidates twice, or re-add a substitution or the
936 last prefix component.
937 (demangle_local_name): Adjust output format.
938
d01ce591
AS
9392000-08-25 Alex Samuel <samuel@codesourcery.com>
940
941 * cp-demangle.c (result_add_separated_char): Change parameter to
942 int.
943 (substitution_add): Don't check for duplicates. Check if
944 previously allocated size is zero.
945 (demangle_name): Remove duplicate check for std substitution.
946 Clear template flag appropriately.
947 (demangle_prefix): Remove argument to demangle_substitution.
948 Don't check that template flag is already set.
949 (demangle_operator_name): Add pt operator.
950 (demangle_type): Don't treat r as built-in type. Remove argument
951 to demangle_substitution. Fix substitution candidate mechanics.
952 Handle <template-template-parm>s. Improve comments.
d1209685 953 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
954 (demangle_substitution): Remove parameter.
955 (print_usage): Remove extra fprintf option.
956
2f59c8eb
GM
9572000-08-24 Greg McGary <greg@mcgary.org>
958
959 * libiberty/random.c (end_ptr): Revert previous change.
960
2f26c11d
GM
9612000-08-24 Greg McGary <greg@mcgary.org>
962
963 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
964 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
965 * libiberty/random.c (end_ptr): Likewise.
966
e282c9c9
AS
9672000-08-23 Alex Samuel <samuel@codesourcery.com>
968
969 * cp-demangle.c (result_close_template_list): Remove function.
970 (result_add_separated_char): New function.
971 (result_open_template_list): New macro.
972 (result_close_template_list): Likewise.
973 (demangle_prefix): Don't set template_p if the
974 prefix ends with a ctor name.
975 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
976 (demangle_type): Check for template args after substitution.
977 (demangle_template_args): Use result_open_template_list.
d1209685 978
c9b6494a
ZW
9792000-08-02 Zack Weinberg <zack@wolery.cumb.org>
980
981 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
982
d1209685 9832000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
984
985 * config/mh-openedition.h: Added -DLE370 definition.
986
0aab2795
ME
9872000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
988
989 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
990 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
991 Cast program to 'char *' in errmsg_arg assignment.
992 (PWAIT_ERROR): Define.
993 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
994 to DJGPP's WIF* macros.
995
c2f275e4
RB
9962000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
997 Jeff Law <law@cygnus.com>
998
73aa9564
RB
999 * getcwd.c: Include string.h, stdlib.h for prototypes
1000
c2f275e4 1001 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1002 * rename.c: Include config.h, unistd.h
1003 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1004
ccbc3eb7
HPN
10052000-07-24 Hans-Peter Nilsson <hp@axis.com>
1006
1007 * cplus-dem.c (work_stuff_copy_to_from): New.
1008 (delete_non_B_K_work_stuff): New.
1009 (delete_work_stuff): New.
1010 (mop_up): Break out work_stuff partly destruction to
1011 delete_non_B_K_work_stuff.
1012 (iterate_demangle_function): New.
1013 (demangle_prefix): Call iterate_demangle_function instead of
1014 demangle_function_name. Leave handling of name-signature
1015 __-delimiters to iterate_demangle_function.
1016 (demangle_integral_value): Strip an optional
1017 following underscore cautiously. Handle negative numbers.
1018
3388651c
DB
10192000-07-24 Daniel Berlin <dberlin@redhat.com>
1020
d1209685 1021 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1022 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1023
0fac482e
AS
10242000-07-21 Alex Samuel <samuel@codesourcery.com>
1025
1026 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1027 allocating ctor mangling.
1028 (demangle_array_type): Handle empty and non-constant array length.
1029
8502a100 10302000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1031 Jeff Law <law@cygnus.com>
1032
c6451ce1
MS
1033 * configure.in (AC_CHECK_HEADERS): Add time.h.
1034 (AC_HEADER_TIME): Add check.
1035 * configure, config.in: Regenerate.
1036 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1037
cd447360
MS
1038 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1039 * configure, config.in: Regenerate.
1040 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1041 * strtol.c, strtoul.c: #include "config.h". Portably #include
1042 <limits.h> and/or <sys/param.h>.
1043 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1044
3b58c099
MS
1045 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1046 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1047 * configure, config.in: Regenerate.
1048 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1049
8502a100
MS
1050 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1051
da0c7743
MS
10522000-07-21 Mike Stump <mrs@wrs.com>
1053
1054 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1055 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1056
838f8562
KG
10572000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1058
1059 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1060
1061 * setenv.c (setenv): Initialize variable `ep'.
1062
1063 * sigsetmask.c (abort): Prototype.
1064
1065 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1066 __STDC__ for stdarg.h include.
1067 (int_vasprintf): Prototype.
1068 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1069 definition. Cast `global_total_width' in comparison.
1070 (main): Prototype. Return a value.
1071
1072 * vfork.c (fork): Prototype.
1073
1074 * xexit.c: Include config.h.
1075
e9958132
JM
10762000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1077
1078 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1079 and print it with %u.
1080
39a6492f
HPN
10812000-07-17 Hans-Peter Nilsson <hp@axis.com>
1082
1083 * testsuite/regress-demangle (failed test): Show result and
1084 expected output.
1085
6d0be369
AH
10862000-07-07 Andrew Haley <aph@cygnus.com>
1087
1088 * cplus-dem.c (main): fflush() after emitting last char before
1089 waiting for input.
1090
bece74bd
AS
10912000-06-28 Alex Samuel <samuel@codesourcery.com>
1092
1093 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1094 (demangle_name): Handle <substitution> followed by
1095 <unqualified-template-name>.
1096 (demangle_type): Follow special substitutions with
1097 <class-enum-type>
1098 (demangle_subtitution): Set template_p for special substitutions.
1099 (main): Fix typos.
d1209685 1100
229b8ec7
AS
11012000-06-27 Alex Samuel <samuel@codesourcery.com>
1102
1103 * cp-demangle.c (demangle_special_name): Swap base and derived
1104 class when demangling construction vtables.
1105
051664b0
AS
11062000-06-21 Alex Samuel <samuel@codesourcery.com>
1107
1108 * cp-demangle.c: Don't include ctype.h.
1109 (IS_DIGIT): New macro.
1110 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1111 instead of isdigit and isalpanum.
1112 (demangling_def): Make name and next const pointers.
1113 (STATUS_ALLOCATION_FAILED): New status code.
1114 (dyn_string_append_space): Handle failure in
1115 dyn_string_append_char.
1116 (int_to_dyn_string): Likewise. Change return value to status_t.
1117 (string_list_new): Handle failure of dyn_string_init.
1118 (result_close_template_list): Change return type to status_t.
1119 Handle failure in dyn_string_append.
1120 (result_push): Change return value to status_t. Handle failure in
1121 string_list_new. Handle failure of result_push throughout.
1122 (substitution_add): Change return value to status_t. Handle
1123 dyn_string failures. Handle failure of substitution_add
1124 throughout.
1125 (template_arg_list_new): Return NULL on allocation failure.
1126 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1127 Handle error result throughout.
1128 (result_append): Likewise.
1129 (result_append_char): Likewise.
1130 (result_append_space): Likewise.
1131 (demangling_new): Make argument a const pointer. Handle
1132 allocation failures.
1133 (demangle_template_args): Handle failure in template_arg_list_new
1134 and result_close_template_list.
1135 (demangle_discriminator): Return if int_to_dyn_string fails.
1136 (cp_demangle): Likewise.
1137 (cp_demangle_type): New function.
1138 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1139 memory allocation failure.
1140 (main): Likewise.
1141 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1142 IN_LIBGCC2.
1143 (dyn_string_init): Change return value to int. Handle
1144 RETURN_ON_ALLOCATION_FAILURE case.
1145 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1146 (dyn_string_release): Delete the dyn_string.
1147 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1148 (dyn_string_copy): Change return type to int.
1149 (dyn_string_copy_cstr): Likewise.
1150 (dyn_string_prepend): Likewise.
1151 (dyn_string_prepend_cstr): Likewise.
1152 (dyn_string_insert): Likewise.
1153 (dyn_string_insert_cstr): Likewise.
1154 (dyn_string_append): Likewise.
1155 (dyn_string_append_cstr): Likewise.
1156 (dyn_string_append_char): Likewise.
1157 (dyn_string_substring): Likewise.
d1209685 1158
fe06b696
ZW
11592000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1160
1161 * cp-demangle.c (demangle_operator_name): Add spaces before
1162 names beginning with a letter: delete, delete[], new, new[],
1163 sizeof.
1164 (demangle_special_name): Handle TF <type> and TJ <type>.
1165
6223e158
PDM
1166Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1167
1168 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1169
48f3e29b
PDM
1170Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1171
1172 * cp-demangle.c (stdio.h): File included unconditionaly.
1173 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1174 * dyn-string.c (stdio.h): File included.
1175 * partition.c (partition_print): No `&' needed to take the address of
1176 a function.
1177
69197e7e
KG
11782000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1179
1180 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1181
69197e7e
KG
1182 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1183
1184 * cp-demangle.c (demangle_char): Change parameter from char to int.
1185 (demangle_expression, demangle_expr_primary): Remove extra
1186 semi-colon in prototype.
1187
1188 * dyn-string.c (dyn_string_append_char): Change parameter from
1189 char to int.
1190
1191 * memcmp.c (memcmp): Constify.
1192
1193 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1194 __extension__.
1195
1196 * partition.c (elem_compare): Prototype. Don't cast away
1197 const-ness.
1198
1199 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1200
7eb23b1f
KG
12012000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1202
1203 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1204
1205 * cp-demangle.c: Include demangle.h.
1206 (template_arg_list_new): DeANSIfy.
1207 (cp_demangle): Make static and add prototype.
1208 (operator_code, operators): Constify.
1209 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1210
3faa108c
AS
12112000-06-05 Alex Samuel <samuel@codesourcery.com>
1212
1213 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1214 unsigned char.
1215 (demangle_unqualified_name): Likewise.
1216 (demangle_number_literally): Likewise.
1217 (demangle_type): Likewise.
1218 (demangle_substitution): Likewise.
1219 (is_mangled_char): Likewise, for isalnum.
1220
69afa80d
AS
12212000-06-04 Alex Samuel <samuel@codesourcery.com>
1222
1223 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1224 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1225 (cp-demangle.o): New dependency.
1226 (dyn-string.o): Likewise.
1227
1228 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1229
1230 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1231 demangler.
1232 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1233 demangling mode.
1234 (gnu_new_abi_symbol_characters): New function.
1235 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1236 file.
1237 * cp-demangle.c: New file.
d1209685 1238
0b72c3df
AC
1239Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1240
1241 * floatformat.c: Add name to each floatformat field.
1242
270cea06
JL
1243Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1244
1245 * Makefile.in (objalloc.o): Depend on config.h
1246
d11ec6f0
ZW
12472000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1248
1249 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1250 if HAVE_STRING_H.
1251 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1252 * objalloc.c: Include config.h. Include stdlib.h and don't
1253 declare malloc or free if HAVE_STDLIB_H.
1254 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1255 else declare malloc without prototype. Include string.h if
1256 HAVE_STRING_H, else declare memset without prototype. Don't
1257 include stddef.h.
1258
f8e2da56
MS
12592000-05-23 Mike Stump <mrs@wrs.com>
1260
1261 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1262 -j3.
f8e2da56 1263
650f3068
DA
12642000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1265
1266 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1267
1d2da2e1
HB
12682000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1269
d1209685 1270 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1271 probably zero, also eliminate a warning on alpha.
1272
47668d0a
DE
12732000-05-15 David Edelsohn <edelsohn@gnu.org>
1274
c7a79a32 1275 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1276 on $(enable_shared).
1277
36348eab
JJ
12782000-05-10 Jakub Jelinek <jakub@redhat.com>
1279
1280 * config.table: Use mh-sparcpic for sparc*-*-*.
1281
209bbe34
NC
12822000-05-08 Nick Clifton <nickc@cygnus.com>
1283
1284 * Makefile.in (CFILES): Add strncmp.c.
1285 (NEEDED): Add strncmp.
1286
a85a47fb
KG
12872000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1288
1289 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1290 Cast the arguments to `islower' to `unsigned char'.
1291 (print_demangler_list): Prototype.
1292
4aef973c
PDM
1293Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1294
1295 * sort.c (UCHAR_MAX): Provide fallback definition.
1296
3b94497c
AO
12972000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1298
1299 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1300 SUBDIRS.
1301
24eaa47a
KB
13022000-04-28 Kenneth Block <block@zk3.dec.com>
1303 Jason Merrill <jason@casey.cygnus.com>
1304
d1209685
ZW
1305 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1306 (cplus_demangle_set_style): New function for setting style.
1307 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1308
a9266bfa
KG
13092000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1310
1311 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1312
1313 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1314 (libiberty_AC_FUNC_STRNCMP): Invoke.
1315
1316 * strncmp.c: New file.
1317
8e02c4d0
JH
1318Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1319
1320 * hashtab.c (htab_expand): Add prototype.
1321 (find_empty_slot_for_expand): Likewise.
1322
4feeaae3
KG
13232000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1324
1325 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1326 match prototype.
1327 (htab_expand): Cast the return value of xcalloc.
1328
18a94a2f
MM
13292000-04-24 Mark Mitchell <mark@codesourcery.com>
1330
1331 * hashtab.c (hash_pointer): New function.
1332 (eq_pointer): Likewise.
1333 (htab_hash_pointer): New variable.
1334 (htab_eq_pointer): Likewise.
1335
eeb0656f
MM
13362000-04-23 Mark Mitchell <mark@codesourcery.com>
1337
b51024fc
MM
1338 * sort.c (sort_pointers): Fix endianness bugs.
1339
eeb0656f
MM
1340 * sort.c: New file.
1341 * Makefile.in (CFILES): Add sort.c
1342 (REQUIRED_OFILES): Add sort.o.
1343 (sort.o): New target.
1344
7277f72d
MS
13452000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1346
1347 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1348 4.3BSD systems.
1349
e38992e8
RK
1350Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1351
1352 * hashtab.c: Various minor cleanups.
1353 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1354 (htab_find_slot): Likewise.
1355
498e1ab1
DP
13562000-04-16 Dave Pitts <dpitts@cozx.com>
1357
1358 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1359
dc17cc7b
RH
13602000-04-05 Richard Henderson <rth@cygnus.com>
1361
1362 * splay-tree.c (splay_tree_remove): New.
1363
b13eb66b
MM
13642000-03-30 Mark Mitchell <mark@codesourcery.com>
1365
1366 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1367 codes.
1368 (htab_find_with_hash): Likewise.
1369 (htab_find_slot_with_hash): Likewise.
d1209685 1370
0194e877
ZW
13712000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1372
1373 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1374 unless it will be used. Rearrange loop for better
1375 optimization.
1376 (higher_prime_number): Add static prototype.
1377
abc61fd4
JL
1378Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1379
1380 * Makefile.in (partition.o): Depend on config.h
1381
8c5d513f
BS
13822000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1383
1384 * hashtab.c (find_empty_slot_for_expand): New function.
1385 (htab_expand): Use it instead of htab_find_slot.
1386 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1387 argument HASH.
1388 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1389 (htab_find): New wrapper function.
1390 (htab_find_slot): Likewise.
1391 (htab_traverse): Pass slot, not entry, to called function.
1392
d9d4fb43
AS
13932000-03-09 Alex Samuel <samuel@codesourcery.com>
1394
1395 * Makefile.in (CFILES): Add partition.c.
1396 (REQUIRED_OFILES): Add partition.o.
1397 (partition.o): New rule.
1398 * partition.c: New file.
d1209685 1399
5dc9cffd
ZW
14002000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1401
1402 * hashtab.c (htab_create): Set del_f.
1403 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1404 Use it.
1405
5194cf08
ZW
14062000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1407
1408 * hashtab.c: Remove debugging variables (all_searches,
1409 all_collisions, all_expansions). Delete
1410 all_hash_table_collisions.
1411 (create_hash_table, delete_hash_table, empty_hash_table,
1412 find_hash_table_entry, remove_element_from_hash_table_entry,
1413 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1414 hash_table_elements_number, hash_table_collisions): Rename to:
1415 htab_create, htab_delete, htab_empty, htab_find_slot,
1416 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1417 htab_elements, htab_collisions.
1418 (htab_find): New function, handles common case where you don't
1419 plan to add or delete an entry.
1420 (htab_expand): Don't create a whole new table, just a new
1421 entry vector.
1422 (htab_find_slot): Simplify logic.
1423
5ad5a984
ILT
14241999-08-03 Ian Lance Taylor <ian@zembu.com>
1425
1426 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1427 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1428
1429 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1430 $(TARGETLIB)n so it works on MSDOS.
1431 (install_to_tooldir): Likewise.
1432
14331999-07-21 Ian Lance Taylor <ian@zembu.com>
1434
1435 From Mark Elbrecht:
1436 * makefile.dos: Remove; obsolete.
1437 * configure.bat: Remove; obsolete.
1438
14391999-07-11 Ian Lance Taylor <ian@zembu.com>
1440
1441 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1442 warning.
1443
aeecce42
MK
14442000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1445
1446 * pexecute.c: Conditionally include string.h.
5194cf08 1447 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1448
1eaf7d9c
KG
14492000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1450
1451 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1452 we're using gcc.
1453
1454 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1455
0fadedb2
GK
14561999-12-27 Geoff Keating <geoffk@cygnus.com>
1457
1458 * vasprintf.c (int_vasprintf): Don't re-read the format character
1459 as this mishandles strings like '%%s'.
1460
08230f26
MM
14611999-12-05 Mark Mitchell <mark@codesourcery.com>
1462
1463 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1464 rather than struct splay_tree_node.
1465 (splay_tree_insert): Use struct splay_tree_s rather than struct
1466 splay_tree.
1467
6de9b8ff
PDM
1468Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1469
1470 * hashtab.c (sys/types.h): File included.
1471
f3636679
JM
14721999-11-22 Jason Merrill <jason@casey.cygnus.com>
1473
1474 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1475 BSD license, pursuant with
1476
1477 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1478
36dd3a44
JL
1479Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1480
1481 * hashtab.c: Include stdio.h.
1482
6e300472
JL
1483Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1484
1485 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1486
df548dfc
PDM
1487Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1488
1489 * xstrdup (sys/types.h): Include this file.
1490
2c375143
NS
14911999-10-28 Nathan Sidwell <nathan@acm.org>
1492
1493 * Makefile.in (SUBDIRS): New macro.
1494 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1495 avoid multiple subdirectory cleaning.
1496 (*-subdir): Use SUBDIRS.
1497
a82cecda
JK
14981999-10-25 Jim Kingdon <http://developer.redhat.com/>
1499
1500 * cplus-dem.c: Move declarations of standard_symbol_characters and
1501 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1502 warnings.
1503
ed38f5d5
ZW
15041999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1505
1506 * hashtab.c (find_hash_table_entry): When returning a
1507 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1508 (clear_hash_table_slot): New function which deletes an entry
1509 by its position in the table, not its value.
1510 (traverse_hash_table): New function which calls a hook
1511 function for every live entry in the table.
1512
b60fe4a7
MM
15131999-10-19 Mark Mitchell <mark@codesourcery.com>
1514
1515 * cplus-dem.c (INTBUF_SIZE): New macro.
1516 (string_append_template_idx): New function.
1517 (demangle_expression): Likewise.
1518 (demangle_integral_value): Use it.
1519 (demangle_real_value): New function, split out from ...
1520 (demangle_template_value_parm): ... here. Use
1521 string_append_template_idx. Use demangle_real_value.
1522 (demangle_template): Use string_append_template_idx.
1523 (demangle_qualified): Use consume_count_with_underscores.
1524 (get_count): Tweak formatting.
1525 (do_type): Use string_append_template_idx.
5194cf08 1526
3da5522a
KG
15271999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1528
1529 * calloc.c: Add a public domain notice.
1530
d7d36ea8
PDM
1531Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1532
1533 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1534
a2f945c6
VM
1535Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1536
1537 * Makefile.in (CFILES): Add hashtab.c
1538 (REQUIRED_OFILES): Add hashtab.o
1539 (hashtab.o): Add dependencies.
1540 * hashtab.c: New file
1541
7f22ec2e
MK
1542Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1543
1544 * basename.c (DIR_SEPARATOR): New macro.
1545 (DIR_SEPARATOR_2): Likewise.
1546 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1547 (IS_DIR_SEPARATOR): Likewise.
1548 (main): Handle MSDOS style pathname.
1549
7c56a6ce
MM
15501999-10-11 Mark Mitchell <mark@codesourcery.com>
1551
1552 * cplus-dem.c (do_type): Handle pointer to member types whose
1553 enclosing classes have namespace scope.
1554
cd32188b
ME
1555Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1556
1557 * config.table: Provide a backup shell for executing move-if-change.
1558
fc232f7a
MM
15591999-10-02 Mark Mitchell <mark@codesourcery.com>
1560
1561 * xmalloc.c (xmalloc): Fix spelling error.
1562 (xcalloc, xrealloc): Likewise.
1563
2a138827
KG
15641999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1565
1566 * cplus-dem.c (fancy_abort, demangle_integral_value,
1567 demangle_arm_hp_template, recursively_demangle,
1568 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1569 (program_name, program_version, fatal): Constify a char*.
1570 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1571 (main): Call return, not exit.
1572
5a657fc3
KG
15731999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1574
1575 * choose-temp.c: Remove obsolete comment about gcc.
1576 (make_temp_file): Constify a char*.
1577
33c5ddcd
KG
1578Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1579
1580 * xmemdup.c: Include sys/types.h.
1581
b10647f1
JG
15821999-09-07 Jeff Garzik <jgarzik@pobox.com>
1583
1584 * xmemdup.c: New xmemdup function.
1585 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1586
3dd6c3af
LV
1587Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1588
5194cf08 1589 * config.table: Add openedition target.
3dd6c3af
LV
1590 * config/mh-openedition: New file.
1591
19e28e2a
ME
1592Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1593
1594 * pexecute.c (pexecute): Fill in temp_base when needed.
1595
4dfeccf9
RH
15961999-08-31 Richard Henderson <rth@cygnus.com>
1597
1598 * getpwd.c: Check HAVE_GETCWD before defining it away.
1599
4ac3cb83
KG
16001999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1601
1602 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1603 (REQUIRED_OFILES): Add getpwd.o.
1604 (getpwd.o): Add target.
1605
1606 * configure.in (AC_PREREQ): Bump to 2.13.
1607 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1608
1609 * getpwd.c: New file, moved here from gcc.
1610
e797ff70
KG
16111999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1612
1613 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1614 comparing against a signed quantity.
1615 (arm_special): Likewise.
1616 (demangle_fund_type): Likewise.
1617 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1618 ATTRIBUTE_UNUSED.
e797ff70
KG
1619 (main): Constify variable `valid_symbols'.
1620
55247fce
PDM
1621Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1622
1623 * strtoul.c (strtoul): Add parentheses around && within ||.
1624
76632dd0
DJ
1625Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1626
1627 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1628 libdir, libsubdir and tooldir.
1629
d080bbfa
MM
16301999-08-01 Mark Mitchell <mark@codesourcery.com>
1631
1632 * splay-tree.c (splay_tree_insert): Return the new node.
1633
a81c752a
RH
16341999-07-14 Richard Henderson <rth@cygnus.com>
1635
5194cf08 1636 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1637 prototyping directly.
1638 * choose-temp.c: Conditionally include string.h.
1639
8f1824d9
JM
16401999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1641
1642 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1643
652374d3
ILT
16441999-07-11 Ian Lance Taylor <ian@zembu.com>
1645
1646 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1647 warning.
1648
a4494286
JM
16491999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1650
1651 * Makefile.in (needed-list): Only include stuff we actually need
1652 for libstdc++.
1653
90e72e20
AS
16541999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1655
1656 * configure.in (checkfuncs): Add gettimeofday.
1657 * config.in, configure: Regenerated.
1658
b569200e
MK
1659Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1660
1661 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1662 the test fails.
1663 * configure: Regenerate.
1664
73919448
MS
16651999-06-10 Mike Stump <mrs@wrs.com>
1666
1667 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1668 parallel builds.
1669
fee9125c
KG
16701999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1671
1672 * putenv.c: Include ansidecl.h to define `const'.
1673 * setenv.c: Likewise.
1674
71cce721
MN
1675Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1676
a7c9637f
JL
1677 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1678 * configure.in (funcs): Add putenv and setenv.
1679 (AC_CHECK_FUNCS): Check for putenv and setenv.
1680 * configure: Rebuilt.
1681 * putenv.c setenv.c: New files.
1682
71cce721
MN
1683 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1684 bytes of space using malloc.
1685
53504016
SG
1686Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1687
1688 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1689 the *mangled pointer beyond the end of the string. Clean up code to
1690 match prevailing coding style.
1691
34842539
MH
16921999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1693
1694 * tmpnam.c (L_tmpnam): Fix typo.
1695
3a08531d
ME
1696Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1697
1698 * cplus-dem.c (standard_symbol_characters): Renamed from
1699 standard_symbol_alphabet. No longer modify TABLE.
1700 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1701 modify TABLE.
1702 (main): Corresponding changes. Use strchr to determine if a
1703 character is valid.
1704
8db9d08b
JB
17051999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1706
1707 * cplus-dem.c (main): Use table lookup to distinguish identifier
1708 characters from non-identifier characters.
1709 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1710
6a071f4a
FF
1711Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1712
1713 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1714 * getruntime.c: Only attempt to include sys/resource.h and
1715 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1716 are defined.
1717
7dd88617
DT
1718Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1719
1720 * configure.in (alloca detection): Handle alloca directly for interix.
1721 * configure: Rebuilt.
1722
7a1528bc
MK
1723Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1724
1725 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1726
76409268
JB
17271999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1728
1729 Fix from Dale Hawkins:
5194cf08 1730 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
1731 reallocated properly if we use it again.
1732
1733 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1734 stricter about syntax. Always null-terminate string.
1735
acbbd80a
MK
1736Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1737
1738 * configure.in (checkfuncs): Check for sbrk.
1739 * config.in: Rebuilt.
1740 * configure: Likewise.
1741 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1742
92523551
JB
17431999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1744
1745 Fix from Marcus Daniels:
1746 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1747 identifier looking for another underscore.
1748
36eb4217
MK
1749Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1750
1751 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1752 * xmalloc.c: Likewise.
1753 (xcalloc): UWIN has sbrk.
1754 (xrealloc): Fix guard macro.
1755
2c45d1a0
RH
17561999-04-11 Richard Henderson <rth@cygnus.com>
1757
1758 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1759 or <alloca.h>.
1760 * clock.c (GNU_HZ): New definition.
1761 (clock): Use it.
1762 * getruntime.c: Likewise.
1763
1764 * config.table: Use mh-beos.
1765 * config/mh-beos: New file.
1766
391cdef0
MM
17671999-04-11 Mark Mitchell <mark@codesourcery.com>
1768
1769 * cplus-dem.c (demangle_template_value_parm): Handle
1770 pointers-to-members.
1771 (do_type): Handle template parameters as qualifiers.
1772
9d229989
JB
17731999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1774
1775 * cplus-dem.c: Attempt to handle overflows in counts with some
1776 semblance of grace.
1777 (consume_count): Detect overflows. Return -1 to indicate errors,
1778 instead of zero.
1779 (demangle_template_value_parm, demangle_template): Handle change
1780 to consume_count's return convention.
1781
7c72138a
TT
17821999-04-05 Tom Tromey <tromey@cygnus.com>
1783
1784 * testsuite/regress-demangle: New file.
1785 * testsuite/demangle-expected: New file.
1786
1787 * Makefile.in (all, check, installcheck, info, install-info,
1788 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1789 distclean, maintainer-clean, realclean): Depend on corresponding
1790 `-subdir' target.
1791 (all-subdir check-subdir installcheck-subdir info-subdir
1792 install-info-subdir clean-info-subdir dvi-subdir
1793 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1794 distclean-subdir maintainer-clean-subdir): New target.
1795 * testsuite/Makefile.in: New file.
1796 * configure: Rebuilt.
1797 * configure.in: Create testsuite/Makefile.
1798
ae7f7270
MM
17991999-04-02 Mark Mitchell <mark@codesourcery.com>
1800
1801 * splay-tree.h (splay_tree_compare_pointers): Define.
1802
30f72379
MM
18031999-03-30 Mark Mitchell <mark@codesourcery.com>
1804
1805 * splay-tree.c (splay_tree_compare_ints): Define.
1806
4cc48683
TT
18071999-03-30 Tom Tromey <tromey@cygnus.com>
1808
1809 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1810 don't advance input pointer.
1811 (demangle_class_name): If consume_count didn't find a count, do
1812 nothing. Don't bother with `strlen' sanity check; consume_count
1813 does it for us.
1814
3510075c
JL
18151999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1816
1817 From Art Haas <ahaas@neosoft.com>:
1818 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1819 when doing arm or hp style.
1820 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 1821
89f602a7
MK
1822Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1823
1824 * pexecute.c (__CYGWIN32__): Rename to
1825 (__CYGWIN__): this.
1826 * xmalloc.c: Likewise.
1827
1828 Changes to support i386-pc-uwin.
1829 * configure.in (*-*-uwin*): Workaround for vfork bug.
1830 * configure: Regenerate.
1831 * pexecute.c (pexecute): Be like standard Unix.
1832 (pwait): Likewise.
1833 * xmalloc.c (first_break): Define.
1834 (xmalloc_set_program_name): Use.
1835 (xmalloc): Use.
1836
9346c824
FS
1837Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1838
1839 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1840
3510075c
JL
1841Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1842
1843 * config.table: Check cygwin*, not cygwin32*.
1844
8ec65f13
DB
1845Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1846
1847 * Makefile.in: Change mkstemp -> mkstemps.
1848
687361c8
ME
1849Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1850
1851 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1852 * configure.in (funcs): Check for and conditionally add mkstemps to
1853 the list of functions libiberty will provide.
1854 * configure: Rebuilt.
5194cf08 1855
b207e09c
MK
1856Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1857
5194cf08 1858 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
1859 platforms that don't have HZ.
1860 * getruntime.c (HZ): Likewise.
1861
16b4c15e
RH
1862Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1863
1864 * Makefile.in (xstrdup.o): Depend on config.h.
1865
38beb75c
UD
1866Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1867
1868 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1869 freeing it.
1870
7e4311a3
KG
1871Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1872
1873 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1874
3510075c
JL
1875Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1876
1877 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1878 splay-tree.o.
1879
18801999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1881
1882 * configure.in: Require autoconf 2.12.1 or higher.
1883
fb9939b8
MM
18841998-12-30 Michael Meissner <meissner@cygnus.com>
1885
1886 * random.c (NULL): Don't redefine NULL if it is already defined.
1887
087aa398
KG
1888Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1889
1890 * argv.c (buildargv): Cast the result of alloca in assignment.
1891
1892 * choose-temp.c: Include stdlib.h.
38beb75c 1893
087aa398 1894 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
1895 (snarf_numeric_literal): Constify first parameter.
1896 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1897 int, not a char.
087aa398
KG
1898 (demangle_qualifier): Likewise.
1899 (demangle_signature): Cast the argument of a ctype function to
1900 unsigned char.
1901 (arm_pt): Add parens around assignment used as truth value.
1902 (demangle_arm_hp_template): Constify variable `args'.
1903 (do_hpacc_template_const_value): Cast the argument of a ctype
1904 function to unsigned char.
1905 (do_hpacc_template_literal): Remove unused variable `i'.
1906 (snarf_numeric_literal): Constify parameter `args'.
1907 Cast the argument of a ctype function to unsigned char.
1908
1909 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 1910 avoid ambiguous `else'.
38beb75c 1911
087aa398 1912 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
1913 `cstart' and `cend' to unsigned char. Cast the argument of macro
1914 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
1915
1916 * objalloc.c (free): Add prototype.
1917
21f2174d
HPN
1918Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1919
1920 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1921
3510075c
JL
1922Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1923
1924 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 1925 doesn't exist.
3510075c 1926 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 1927
e8fc8222
AM
1928Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1929
1930 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1931 bumping the pointer we read from. Also prepend these codes,
1932 as we do in other places.
1933
3510075c
JL
19341998-12-18 Nick Clifton <nickc@cygnus.com>
1935
1936 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1937 'const char *' in order to match its usage when calling siblings.
1938 (snarf_numeric_literal): Make first arg 'const char **' in order
1939 to match usage.
11a0bb74 1940
f4f30aa1
JL
1941Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1942
11a0bb74
KG
1943 * choose-temp.c: Don't check IN_GCC anymore.
1944
1945 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1946 * memchr.c (memchr): Likewise.
1947 * memcpy.c (memcpy): Likewise.
1948 * memmove.c (memmove): Likewise.
38beb75c 1949
11a0bb74
KG
1950 * mkstemp.c: Don't check IN_GCC anymore.
1951 * pexecute.c: Likewise.
1952 * splay-tree.c: Likewise.
38beb75c 1953
11a0bb74
KG
1954 * strchr.c (strchr): Use `const', not `CONST'.
1955 * strrchr.c (strrchr): Likewise.
1956 * strtol.c (strtol): Likewise.
1957 * strtoul.c (strtoul): Likewise.
1958
70d5ccef
DT
1959Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1960 Elena Zannoni <ezannoni@cygnus.com>
1961 Stan Shebs <shebs@cygnus.com>
1962 Edith Epstein <eepstein@cygnus.com>
1963 Andres MacLeod <amacleod@cygnus.com>
1964 Satish Pai <pai@apollo.hp.com>
1965
1966 * HP aCC demangling support.
1967 * cplus-dem.c
1968 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
1969 demangling correctly when -edg specified; set the demangling style
1970 when user specifies 'edg'. Set strip_underscore to
1971 prepends_underscore, if not HPUXHPPA. Set
1972 current_demangling_style to hp_demangling if HPUXHPPA. Set
1973 current demangling style correctly if the switch is hp. Read
1974 label correctly also in the HP style case.
70d5ccef 1975 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 1976 function.
70d5ccef 1977 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 1978 style for this case is the same as ARM.
70d5ccef
DT
1979 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1980 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
1981 demangle_arm_pt.); check and set value of temp_start field in
1982 multiple places. Also, when ceching for end of template args,
1983 check to see if at end of static member of template class.
70d5ccef 1984 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 1985 include template args in string defining class.
70d5ccef
DT
1986 (demangle_class_name): use demangel_arm_hp_template.
1987 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
1988 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1989 Handle EDG_DEMANGLING style. Handle constructor and destructor
1990 ops for HP style.
70d5ccef 1991 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
1992 styles. global destructor and constructor for HP style are same
1993 as for ARM style. Same for local variables.
70d5ccef
DT
1994 (demangle_qualified): handle EDG_DEMANGLING style.
1995 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
1996 cases '1' - '9' : initialize the temp_start field to -1 and handle
1997 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1998 and AUTO_DEMANGLING styles. If expecting a function and managed
1999 to demangle the funct args, then handle the LUCID_DEMANGLING,
2000 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2001 class name after "Lnnn_ in HP style case. HP style too needs to
2002 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2003 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2004 value param for HP/aCC.
70d5ccef 2005 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2006 literal parameter for HP aCC.
70d5ccef
DT
2007 (recursively_demangle): new function
2008 (snarf_numeric_literal): new function.
2009 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2010 to message.
70d5ccef 2011
8d525fa8
CF
2012Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2013
2014 * pexecute.c: Remove obsolete ifdefed cygwin code.
2015
9b1a92d8
KG
2016Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2017
2018 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2019 * cplus-dem.c: Likewise. Conform to libiberty.h.
2020 * pexecute.c: Likewise.
2021 * splay-tree.c: Likewise.
2022
c85c3232
MS
20231998-11-25 Mike Stump <mrs@wrs.com>
2024
2025 * Makefile.in (splay-tree.o): Add config.h dependency.
2026
35a6cd99
KG
2027Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2028
2029 * configure.in: Use AC_PREREQ(2.12.1).
2030
6e6e34b7
BK
20311998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2032
5194cf08 2033 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2034
59b67c11
JL
2035Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2036
2037 * mpw.c (mpw_access): Add missing parens.
2038
a6458d1d
KG
2039Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2040
2041 * configure.in: Call AC_HEADER_SYS_WAIT.
2042
2043 * pexecute.c: Include sys/wait.h when !IN_GCC.
2044
3510075c
JL
2045Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2046
2047 * pexecute.c: revert back to checking old Cygwin
2048 preprocessor symbol until some time has passed.
2049
2050Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2051
2052 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2053 since it will now support similar constructs.
2054
a9acf741
KG
2055Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2056
2057 * configure.in: Check for calloc.
2058
2059 * calloc.c: New file.
2060
2061 * xmalloc.c (xcalloc): New function.
2062
a49fb37a
AM
2063Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2064
2065 *cplus-dem.c (demangle_prefix): Use the last "__"
2066 in the mangled name when looking for the signature. This allows
2067 template names to begin with "__".
2068
0e714131
MM
20691998-11-08 Mark Mitchell <mark@markmitchell.com>
2070
ec2288ff
MM
2071 * cplus-dem.c (type_kind_t): Add tk_reference.
2072 (demangle_template_value_parm): Handle it.
2073 (do_type): Use it for references, instead of tk_pointer.
2074
0e714131
MM
2075 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2076 not internal_cplus_demangle.
2077
2931b6d4
KG
2078Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2079
2080 * choose-temp.c: Don't include gansidecl.h.
2081 * mkstemp.c: Likewise.
2082 * pexecute.c: Likewise.
2083
dd8f3ed5
GN
2084Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2085
5194cf08
ZW
2086 * configure.in: detect cygwin* instead of cygwin32*
2087 * configure: regenerate
dd8f3ed5 2088
c5f7c445
KG
2089Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2090
2091 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2092 whether to include config.h. Possibly include unistd.h in the
2093 !IN_GCC case. Define VFORK_STRING as a printable function call
2094 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2095 defined, include vfork.h. If VMS is defined, define vfork()
2096 appropriately. Remove vfork check on USG, we're using autoconf.
2097 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2098 locally what string to use.
c5f7c445 2099
ad3ef78e
MM
21001998-10-26 Mark Mitchell <mark@markmitchell.com>
2101
2102 * splay-tree.c: Tweak include directives to make sure declarations of
2103 xmalloc and free are available.
2104
224301c1
MM
21051998-10-25 Mark Mitchell <mark@markmitchell.com>
2106
2107 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2108 anonymous namespaces.
38beb75c 2109
d9db46fd
MM
21101998-10-23 Mark Mitchell <mark@markmitchell.com>
2111
2112 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2113 with type_quals.
2114 (TYPE_UNQUALIFIED): New macro.
2115 (TYPE_QUAL_CONST): Likewise.
2116 (TYPE_QUAL_VOLATILE): Likewise.
2117 (TYPE_QUAL_RESTRICT): Likewise.
2118 (code_for_qualifier): New function.
2119 (qualifier_string): Likewise.
2120 (demangle_qualifier): Likewise.
2121 (internal_cplus_demangle): Use them.
2122 (demangle_signature): Likewise.
2123 (demangle_template_value_parm): Likewise.
2124 (do_type): Likewise.
2125 (demangle_fund_type)): Likewise.
224301c1 2126
b056ad1c
KG
2127Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2128
2129 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2130 to match prototype.
2131
ed87f9c8
MM
21321998-10-21 Mark Mitchell <mark@markmitchell.com>
2133
2134 * splay-tree.c: New file.
2135 * Makefile.in (CFILES): Add it.
2136 (REQUIRED_OFILES): Likewise.
2137 (splay-tree.o): Add dependencies.
2138
e0c13971
AS
2139Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2140
2141 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2142 range of 'K' index.
2143
91e0f659
KG
2144Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2145
2146 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2147
2148 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2149 `unsigned char'.
2150 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2151 comparing against one.
2152 (cplus_mangle_opname): Likewise.
2153 (demangle_integral_value): Cast argument of ctype macro to
2154 `unsigned char'.
2155 (demangle_template_value_parm): Likewise.
2156 (demangle_template): Initialize variable `bindex'. Cast the
2157 result of `strlen' to (int) when comparing against one. Remove
2158 unused variable `start_of_value_parm'.
2159 (demangle_class_name): Cast the result of `strlen' to (int) when
2160 comparing against one.
2161 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2162 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2163 when comparing against one.
2164 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2165 (get_count): Likewise.
2166 (do_type): Likewise. Cast the result of `strlen' to (int) when
2167 comparing against one.
2168 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2169 (demangle_function_name): Cast the result of `strlen' to (int)
2170 when comparing against one.
2171
2172 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2173 comparing against one.
2174
73aeb2ff
JL
2175Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2176
5194cf08
ZW
2177 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2178 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2179 * config.in, configure: Rebuilt.
ae76f1be 2180
73aeb2ff
JL
2181 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2182 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2183 * config.in, configure: Rebuilt.
2184
dd8f3ed5
GN
2185Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2186
5194cf08 2187 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2188
f77d8413
MT
2189Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2190
2191 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2192
ca6b370d
JL
2193Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2194
2195 * Merge egcs & devo libiberty.
2196
ab4856b1
ML
2197