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