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