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