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