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