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