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