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