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