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