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