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