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