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