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