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