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