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