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