]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX): Define for hosts with HOST_EXEC...
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
eaed9290
DS
12002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
2
3 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
4 Define for hosts with HOST_EXECUTABLE_SUFFIX.
5
ef4e4181
NC
62002-11-24 Nick Clifton <nickc@redhat.com>
7
8 * make-relative-prefix.c (make_relative_prefix): Ensure return
9 string is empty before using strcat to construct it.
10
42766f8d
DJ
112002-11-22 Daniel Jacobowitz <drow@mvista.com>
12
13 * Makefile.in: Add make-relative-prefix.c.
14 * make-relative-prefix.c: New file.
15 * functions.texi: Rebuilt.
16
783080ab
JJ
172002-11-16 Jakub Jelinek <jakub@redhat.com>
18
19 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
20 used with arguments in traditional C' warnings.
21
7da64d7a
JJ
222002-10-16 Jakub Jelinek <jakub@redhat.com>
23
24 * config.table: Use mh-s390pic for s390x too.
25
de78f58b
AJ
262002-10-06 Andreas Jaeger <aj@suse.de>
27
28 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
29 variable and of strict-aliasing warning.
30 (grow_vect): Use char as first parameter.
31
6c5d742e
KG
322002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33
34 * Makefile.in (all): Fix multilib parallel build.
35
f08b7eee
JDA
362002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
37
38 * cp-demangle.c (demangling_new): Cast 0 to enum.
39 (demangle_char): Cast return of strdup to char *.
40 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
41 (is_gnu_v3_mangled_dtor): Likewise.
42 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
43 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
44 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
45 * md5.c (md5_process_bytes): Cast results back to const void *.
46 (md5_process_block): Add cast to const md5_uint32 *.
47 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
48 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
49 unsigned short.
50 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
51 to void *.
52 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
53
8d87f295
NC
542002-09-19 Nick Clifton <nickc@redhat.com>
55
56 * README: Update email addresses for bugs and patches.
57
6eedb9ca
MS
582002-09-10 Mike Stump <mrs@apple.com>
59
60 * splay-tree.c (splay_tree_successor): Fix comments.
61
3fd9d606
ZW
622002-09-11 Zack Weinberg <zack@codesourcery.com>
63
b2196e8f 64 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
65 * testsuite/Makefile.in: Adjust for test-demangle.
66 * testsuite/regress-demangle: Deleted.
67 * testsuite/test-demangle.c: New file.
68 * testsuite/demangle-expected: Change \$ to $ throughout, now that
69 this file is not being read by a shell script.
70
70c4e67a
RS
712002-09-05 Roger Sayle <roger@eyesopen.com>
72
73 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
74
65b91091
DD
752002-08-07 DJ Delorie <dj@redhat.com>
76
77 * regex.c (re_error_msgid): Just use a simple array of strings.
78 (re_compile_pattern): Compensate.
79 (re_comp): Likewise.
80 (re_comp): Likewise.
81 (regerror): Likewise.
82
437974a9
NB
832002-07-29 Neil Booth <neil@daikokuya.co.uk>
84
85 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 86
28a34ec1
JM
872002-07-10 Jason Merrill <jason@redhat.com>
88
89 * cp-demangle.c (demangle_identifier): Support extended Unicode
90 characters.
91
84326592
KG
922002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
93
94 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 95 !defined IN_GLIBCPP_V3.
84326592 96
5d69ba1f
MM
972002-07-01 Mark Mitchell <mark@codesourcery.com>
98
99 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
100 Set it for the "st" operator.
101 (demangle_expression): Handle expressions with types as arguments.
102
7fda878c
DR
1032002-06-30 Douglas Rupp <rupp@gnat.com>
104
105 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
106 * Makefile.in (OUTPUT_OPTION): Use.
107
112bae77
PB
1082002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
109
110 * Makefile.in (install_to_libdir): Add $(DESTDIR).
111 (install_to_tooldir): Likewise.
112
53309d5c
DR
1132002-06-17 Douglas Rupp <rupp@gnat.com>
114
115 * lbasename.c: Add 2002 to copyright.
116 (IS_DIR_SEPARATOR): Remove VMS junk.
117
045b3a49
GK
1182002-06-05 Geoffrey Keating <geoffk@redhat.com>
119
120 * hashtab.c (htab_create): New stub function for backward
121 compatibility.
122 (htab_try_create): Likewise.
123
e2500fed
GK
1242002-06-03 Geoffrey Keating <geoffk@redhat.com>
125
126 * hashtab.c (htab_create): Delete.
127 (htab_try_create): Delete.
128 (htab_create_alloc): New.
129 (htab_delete): Support user-specified memory allocation.
130 (htab_expand): Likewise.
131
9f3dbd92
RL
1322002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
133
134 * configure.in: Fix typo in the code checking for sys_errlist.
135 * configure: Regenerated.
136
e4723404
AS
1372002-05-13 Andreas Schwab <schwab@suse.de>
138
139 * config.table: Use mh-x86pic also for x86-64.
140
6706f116
AO
1412002-05-08 Alexandre Oliva <aoliva@redhat.com>
142
143 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
144 script entry, and set LD to it when configuring multilibs.
145 * configure: Rebuilt.
146
deae2ed9
MM
1472002-05-07 Mark Mitchell <mark@codesourcery.com>
148
149 * configure.in (AC_TYPE_PID_T): Use it.
150 * configure: Regenerated.
151 * getruntime.c: Include <sys/types.h>.
152 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
153
4fc4e478
RH
1542002-04-09 Richard Henderson <rth@redhat.com>
155
156 * hashtab.c (higher_prime_number): Use 7 as minimum.
157 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
158 (htab_find_slot_with_hash): Likewise.
159
bd7e6f2d
PE
1602002-04-01 Phil Edwards <pme@gcc.gnu.org>
161
162 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
163 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
164 not compile if IN_GLIBCPP_V3 defined.
165 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
166
a8f55e51
BM
1672002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
168
de78f58b 169 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
170 if it is NULL.
171
96adcacb
DD
1722002-03-27 DJ Delorie <dj@redhat.com>
173
174 * hex.c: Add documentation.
175 (_hex_value): Provide non-ASCII empty table.
176 (hex_init): Initialize the non-ASCII table.
177 * functions.texi: Regenerate.
178
2b613c6a
MM
1792002-03-27 Mark Mitchell <mark@codesourcery.com>
180
181 * dyn-string.c: Add libgcc exception to copyright notice.
182
cd862df8
L
1832002-03-26 H.J. Lu (hjl@gnu.org)
184
185 * config.table: Support --with-build-subdir.
186 * configure.in: Likewise.
187 * configure: Rebuild.
188
ed300793
SG
1892002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
190
191 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
192 seen.
193
b3dd43df
MM
1942002-03-12 Mark Mitchell <mark@codesourcery.com>
195
196 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
197 notice.
198
50c74579
DR
1992002-03-11 Douglas B Rupp <rupp@gnat.com>
200
201 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
202
957978a4
JB
2032002-03-06 Jim Blandy <jimb@redhat.com>
204
205 * splay-tree.c (splay_tree_xmalloc_allocate,
206 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
207 prototyped definitions. Mark `data' arguments as unused.
208
ccc49bed
AC
2092002-03-06 Andrew Cagney <ac131313@redhat.com>
210
211 * floatformat.c (floatformat_arm_ext_big): Delete definition.
212
48d7db63
PE
2132002-03-04 Phil Edwards <pme@gcc.gnu.org>
214
215 * configure.in: Add --enable-install-libiberty option.
216 * Makefile.in (INSTALLED_HEADERS): New variable.
217 (install_to_libdir): Possibly also copy headers.
218 * configure: Regenerated.
219
af18e951
NB
2202002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
221
222 * xmalloc.c (xmalloc_fail): Clarify error message further.
223
d8d7c3c3
NB
2242002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
225
226 * xmalloc.c (xmalloc_fail): Clarify error message.
227
00c2f96f
JB
2282002-02-22 Jim Blandy <jimb@redhat.com>
229
230 * splay-tree.c (splay_tree_xmalloc_allocate,
231 splay_tree_xmalloc_deallocate): New functions.
232 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
233 above functions and a dummy data pointer.
234 (splay_tree_new_with_allocator): New function.
235 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
236 splay_tree_remove): Use the splay tree's allocation and
237 deallocation functions.
238
b1c1a22f
SS
2392002-02-19 Scott Snyder <snyder@fnal.gov>
240
241 * testsuite/demangle-expected: Add test case for infinite loop in
242 demangler.
243 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
244 if do_type() doesn't make any progress --- prevents an infinite
245 loop.
246
336669e7
CW
2472002-02-18 Carlo Wood <carlo@gnu.org>
248
249 PR c++/5390
250 * cplus-dem.c (demangle_integral_value): Accept multi-digit
251 numbers that do not start with an underscore; This is needed
252 for integer template parameters. This doesn't break anything
253 because multi-digit numbers are never followed by a digit.
254 * testsuite/demangle-expected: Corrected all mangled test
255 cases with multi-digit template parameters: g++ 2.95.x does
256 not generate underscores around these parameters.
257
c13db5d1
JM
2582002-02-05 Jason Merrill <jason@redhat.com>
259
260 * cplus-dem.c (flags): Add DMGL_VERBOSE
261 (cplus_demangle_v3_p): Remove.
262 (demangle_it): Add DMGL_TYPES to passed flags.
263 * cp-demangle.c (cplus_demangle_v3_all): Remove.
264 (cplus_demangle_v3_type): Remove.
265 (cplus_demangle_v3): Add options parm.
266
d74697b8
L
2672002-02-02 H.J. Lu (hjl@gnu.org)
268
269 * cp-demangle.c (cp_demangle_type): Do not protect with
270 IN_LIBGCC2.
271 (cplus_demangle_v3_all): New.
272 (cplus_demangle_v3): Call cplus_demangle_v3_all.
273 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
274
275 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
276 Initialized to cplus_demangle_v3.
277 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
278 of cplus_demangle_v3.
279 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
280 command line symbol.
281
282 * testsuite/regress-demangle: Pass the mangled name at the
283 command line.
284
3a441e38
L
2852002-02-01 H.J. Lu <hjl@gnu.org>
286
287 * cp-demangle.c (cp_demangle_type): Call demangling_new with
288 DMGL_GNU_V3.
289
6d747e63
PE
2902002-01-31 Phil Edwards <pme@gcc.gnu.org>
291
292 * cp-demangle.c: Revert yesterday's change.
293
46af757b
AM
2942002-01-31 Adam Megacz <adam@xwt.org>
295
296 * gcc/libiberty/configure.in: Treat mingw the same as cywin
297 wrt HAVE_SYS_ERRLIST.
298
46ab74b1
PE
2992002-01-30 Phil Edwards <pme@gcc.gnu.org>
300
301 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
302 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
303 cp_demangle_type.
304 * testsuite/demangle-expected: New gnu-v3 test.
305
e64d0626
MV
3062002-01-22 Momchil Velikov <velco@fadata.bg>
307
308 * configure.in (variable detection): Use arrays of unspecified
309 size instead of plain integers.
310
9ce3f7e5
DD
3112002-01-18 DJ Delorie <dj@redhat.com>
312
313 * Makefile.in (TESTLIB): New. This library is for future
314 testsuites.
315 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
316 break down by letter.
317 (REQUIRED_OFILES): List long-to-compile files first.
318 (maint-deps): New, target for updating dependencies.
319 (dependencies): Update.
320 * maint-tool: Add dependency-generating option.
321 * configure.in: Check for _doprnt even if we're not providing it.
322 * configure: Regenerate.
323
324 * _doprnt.c: Modifications to allow compiling on any platform.
325 * copysign.c: Likewise.
326 * putenv.c: Likewise.
327 * setenv.c: Likewise.
328 * vsprintf.c: Likewise.
329
0e83ceb1
DR
3302002-01-15 Douglas B Rupp <rupp@gnat.com>
331
332 * mkstemps.c (mkstemps): On VMS, open temp file with option
333 that causes it to be deleted when closed.
334
adddf5bf
KG
3352002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
336
5e65297b
KG
337 * cp-demangle.c (long_options): Const-ify.
338 * cplus-dem.c (long_options): Likewise.
339
adddf5bf
KG
340 * cplus-dem.c (mystrstr): Delete. All callers changed to use
341 strstr instead.
342
a4219437
IR
3432001-12-31 Ira Ruben <ira@apple.com>
344
345 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
346 * configure: Regenerated.
af328d8d
DR
347
3482001-12-24 Douglas B. Rupp <rupp@gnat.com>
349
350 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
351 * configure: Regenerated.
a4219437 352
63de15a4
CR
3532001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
354
355 PR other/2719
356 * cplus-dem.c (consume_count): Treat negative count as an error.
357 * testsuite/demangle-expected: Added testcase.
358
ee262b6f
DR
359Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
360
361 * configure.in: Hardcode that vfork works on VMS host.
362 * configure: Regenerated.
363
d06ba3c7
RH
3642001-12-06 Richard Henderson <rth@redhat.com>
365
366 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
367 (cplus_demangle): Support no_demangling.
368
e490616e
ZW
3692001-11-27 Zack Weinberg <zack@codesourcery.com>
370
371 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
372 in libiberty context. Fix typo in leading comment.
373 * configure.in: Fix various AC_DEFINEs so autoheader works.
374 If any of vprintf, vsprintf, vfprintf is missing from libc,
375 then AC_REPLACE_FUNCS(_doprnt).
376
97e620cf 3772001-11-26 DJ Delorie <dj@redhat.com>
e490616e 378 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
379
380 * Makefile.in (stamp-h): Depend on Makefile for proper
381 serialization.
382 (*-subdir): Depend on config.h for proper serialization.
383
c3bb7df0
DD
3842001-11-26 DJ Delorie <dj@redhat.com>
385
386 * configure.in: Check for alloca.h (for regex.c and putenv.c).
387 * configure: Regenerate.
388 * config.h: Add HAVE_ALLOCA_H.
389
23850d35
KG
3902001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
391
2c47b56b
KG
392 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
393 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
394 is available.
23850d35 395
7ddfb651
JL
396Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
397
d3982b71
JL
398 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
399 * configure.in (HAVE_UINTPTR_T): Test for system defining
400 uintptr_t and define HAVE_UINTPTR_T appropriately.
401 * regex.c (uintptr_t): Do not provide a definition if the
402 system provided one.
403
7ddfb651
JL
404 * regex.c (PREFIX): Provide an alternate definition for
405 non-ANSI/ISO compilers.
406 (ARG_PREFIX): Likewise.
407
2e683037
JM
4082001-11-12 Jim Meyering <meyering@lucent.com>
409
410 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
411 this code would end up calling gettext even in packages built
412 with --disable-nls.
413 * getopt.c (_): Likewise.
414 * regex.c (_): Likewise.
415
f749bd83
AM
4162001-11-03 Alan Modra <amodra@bigpond.net.au>
417
418 * configure.in: Cope with missing makeinfo.
55a10d7c 419 * configure: Regenerate.
f749bd83 420
26ad2982
KG
4212001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
422
e5969ba6
KG
423 * hex.c (hex_init): Provide empty stub.
424
26ad2982
KG
425 * hex.c (hex_init): Delete.
426 (_hex_value): Const-ify and initialize at compile-time.
427
afb649d5
L
4282001-10-19 H.J. Lu <hjl@gnu.org>
429
430 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
431 necessary.
432
5bed56d9
DD
4332001-10-17 DJ Delorie <dj@redhat.com>
434
435 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
436 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 437 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
438 Improve manual formatting.
439 * functions.texi: Regenerate.
440
aac04c15
DD
4412001-10-15 DJ Delorie <dj@redhat.com>
442
443 * Makefile.in (TEXIFILES): Add fnmatch.txh.
444 (maint-undoc): New.
445 maint-tool: Add "undoc" tool.
446 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
447 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
448 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
449 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
450 documentation.
451 * fnmatch.txh: New.
452 * functions.texi: Regenerate.
fae8182a 453
0e4e9e8f
JM
4542001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
455
456 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
457 * strtod.c: Use "ISO C" instead of "ANSI C".
458 * functions.texi: Regenerate.
459
7f8fa05d
JM
4602001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
461
462 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
463 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
464 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
465 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
466 spelling. Give names to function arguments in documentation. Use
467 (void) prototypes in documentation.
468 * functions.texi: Regenerate.
469
0be6abca
KG
4702001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
471
472 * argv.c (buildargv, tests, main): Const-ify.
473 * cp-demangle.c (operator_code): Likewise.
474 * cplus-dem.c (optable, libiberty_demanglers,
475 cplus_demangle_set_style, cplus_demangle_name_to_style,
476 print_demangler_list): Likewise.
477 * hashtab.c (higher_prime_number): Likewise.
478 * strcasecmp.c (charmap): Likewise.
479 * strerror.c (error_info, strerror, main): Likewise.
480 * strncasecmp.c (charmap): Likewise.
481 * strsignal.c (signal_info): Likewise.
482
0e30ffc5
DD
4832001-09-29 DJ Delorie <dj@redhat.com>
484
485 * configure: Regenerate.
486
576fb787
KG
4872001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
488
489 * concat.c: Include stdlib.h.
490
e922f978
EZ
4912001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
492
493 * libiberty.texi: (Top level): Add syncodeindex pg. Add
494 @dircategory and @direntry directives. Add @finalout.
495 (many nodes): Lose the next,prev,up pointers on the @nide line.
496 (Using, Supplemental Functions, Replacement Functions): Fix
497 markup.
498 (Functions): Move around, to allow makeinfo to build the manual
499 without next,prev,up pointers in thye node lines.
500 (Licenses): Fix typos.
501
502 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
503 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
504 * functions.texi: Regenerate.
505
506 * copying-lib.texi: Lose the next,prev,up pointers on the @node
507 line.
508
ae9092da
DD
5092001-09-27 DJ Delorie <dj@redhat.com>
510
511 * configure.in: Don't use in-tree texinfo, because libiberty must
512 be built before it. Check for makeinfo version 4 or higher.
513 * functions.texi: Regenerate.
fae8182a 514
aaa5f039
DD
5152001-09-20 DJ Delorie <dj@redhat.com>
516 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 517
aaa5f039
DD
518 * configure.in (MAKEINFO, PERL): Detect these.
519 (--enable-maintainer-mode): Add.
520 * configure: Regenerate.
521 * Makefile.in (MAKEINFO, PERL): Define.
522 (libiberty.info, libiberty.dvi, libiberty.html): New.
523 (CFILES): Add bsearch.c.
524 (CONFIGURED_OFILES): New, list of objects configure might add.
525 (maint-missing, maint-buildall): New, for maintainers only.
526 (clean, mostlyclean): Add info/dvi/html files.
527 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
528 * gather-docs: New, for maintainers.
529 * maint-tool: New, for maintainers.
530 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
531 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
532 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
533 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
534 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
535 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
536 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
537 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
538 documentation.
fae8182a 539
c1766881
KG
5402001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
541
542 * concat.c (reconcat): Fix for traditional C.
543
ad43d46f
KG
5442001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
545
546 * concat.c (reconcat): New function.
547
c1d49704
KG
5482001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
549
c793eea7
KG
550 * concat.c (vconcat_length, vconcat_copy, concat_length,
551 concat_copy, concat_copy2): New functions.
552 (concat): Use vconcat_length/vconcat_copy.
553
c1d49704
KG
554 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
555 Define.
556
7a98d9b2
KG
5572001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
558
559 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
560 VA_FIXEDARG & VA_CLOSE.
fae8182a 561
7a98d9b2
KG
562 * vasprintf.c: Check HAVE_STRING_H when including string.h.
563 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
564 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
565
e2dff3f2
KG
5662001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
567
568 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
569
d0708dc1
UD
5702001-08-23 Ulrich Drepper <drepper@redhat.com>
571
572 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
573
5742001-08-23 Ulrich Drepper <drepper@redhat.com>
575
576 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
577 instead of mbrtowc.
578 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
579 wcslen, and __wcscoll instead of wcscoll.
580
ffb9435b
MK
5812001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
582
de78f58b
AJ
583 * fibheap.c (fibheap_init, fibnode_init): Remove.
584 (fibheap_new, fibnode_new): Use xcalloc to allocate and
585 initialize memory.
586 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 587
f379eac3
RH
5882001-08-21 Richard Henderson <rth@redhat.com>
589
590 * Makefile.in (fibheap.o): Depend on config.h.
591 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
592 functions for inlining.
593
b1c45ae4
CF
594Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
595
596 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
597 hosting on cygwin.
598 * configure: Regenerate.
599
0310e5ac
AC
6002001-08-20 Andrew Cagney <ac131313@redhat.com>
601
602 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
603 HARRIS_FLOAT_FORMAT.
604 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
605 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
606 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
607 (floatformat_m88110_harris_ext): New float formats.
608
8c23e0a4
DB
6092001-08-20 Daniel Berlin <dan@cgsoftware.com>
610
611 * fibheap.c: New file. Fibonacci heap.
612
613 * Makefile.in (CFILES): Add fibheap.c.
614 (REQUIRED_OFILES): Add fibheap.o.
615 (fibheap.o): Add dependencies for fibheap.o.
616
91625004
CF
6172001-08-17 Christopher Faylor <cgf@cygnus.com>
618
619 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
620 * configure: Regenerate.
621
9e0ba685
RH
6222001-08-16 Richard Henderson <rth@redhat.com>
623
624 * hashtab.c (htab_hash_string): New.
625
d80dedbe
AC
6262001-08-13 Andrew Cagney <ac131313@redhat.com>
627
628 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
629 name.
630
ccea0d85
IH
6312001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
632
633 * regex.c (wcs_regex_compile): Use appropriate string
634 to compare with collating element.
635 Fix the padding for the alignment.
636
b0e9bc8c 6372001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
638
639 * lbasename.c (lbasename): Change function definition to return a
640 const char pointer.
641
056400f1
JM
6422001-08-07 Jason Merrill <jason_merrill@redhat.com>
643
644 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
645 for".
646
4e627c41
RH
6472001-08-03 Richard Henderson <rth@redhat.com>
648
649 * Makefile.in (concat.o): Depend on config.h.
650
b6a2f884
AJ
6512001-07-30 Andreas Jaeger <aj@suse.de>
652
653 * concat.c: Include "config.h".
654
c4b9cfe0
AJ
6552001-07-30 Andreas Jaeger <aj@suse.de>
656
657 * regex.c: Declare wcs functions only if compiling with
658 MBS_SUPPORT.
659 Don't use #elif for traditional C.
660
6612001-07-23 Ulrich Drepper <drepper@redhat.com>
662
663 * regex.c: Revamp memory allocation for WCHAR functions to
664 not use too much stack.
665
6662001-07-30 Andreas Jaeger <aj@suse.de>
667
668 * regex.c: Declare wcs functions only if compiling with
669 MBS_SUPPORT.
670 Don't use #elif for traditional C.
671
2cf50fd3
DJ
6722001-07-25 Daniel Jacobowitz <drow@mvista.com>
673
674 * Makefile.in (regex.o): Add dependency on config.h.
675
27ffc806
DD
6762001-07-18 Andreas Schwab <schwab@suse.de>
677
678 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
679 underscore character.
680
6812001-07-18 Ulrich Drepper <drepper@redhat.com>
682
683 * regex.c: Limit string length printed in debug messages to 100
684 chars.
685
6862001-07-18 Andreas Jaeger <aj@suse.de>
687
688 * regex.c: Place under LGPL version 2.1.
689
dd771632
JJ
6902001-07-10 Jeff Johnston <jjohnstn@redhat.com>
691
692 * Makefile.in: Add support for regex code.
693 * regex.c: New file.
694
29650b2b
MK
6952001-07-05 Mark Klein <mklein@dis.com>
696
697 * Makefile.in: Add ffs.c dependency.
698 * configure.in: Add ffs.c.
699 * ffs.c: New file.
700
c8b28221
RH
7012001-06-18 Richard Henderson <rth@redhat.com>
702
703 * concat.c: Include <sys/types.h>.
704
473c2d0b
LR
7052001-06-11 Loren J. Rittle <ljrittle@acm.org>
706
a4c03da2 707 bootstrap/3106
473c2d0b
LR
708 * strerror.c (sys_nerr): Hide the OS header version.
709 * strsignal.c (sys_nsig): Likewise.
710
0bdcca68
RH
7112001-06-10 Richard Henderson <rth@redhat.com>
712
713 * concat.c: Include string.h. Fix int vs size_t usage.
714 Simplify the iteration loops. Use memcpy.
715
6de133d3
MK
7162001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
717
718 * partition.c: Fix misspelling of `implementation'.
719
8a153288
TS
7202001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
721
722 * md5.c (md5_init_ctx): Declare constants as unsigned.
723 (md5_process_block): Likewise.
724
641b2721
ZW
7252001-05-07 Zack Weinberg <zackw@stanford.edu>
726
727 * cp-demangle.c (demangle_v3_with_details,
728 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
729 function definition.
730 * ternary.c: Use K+R style function definitions. Use PTR, not
731 void *. Make arguments constant where possible.
732
5cdba4ff
MM
7332001-05-07 Mark Mitchell <mark@codesourcery.com>
734
735 * splay-tree.h (splay_tree_max): New function.
736 (splay_tree_min): Likewise.
737
9dab060e
DB
7382001-04-15 Daniel Berlin <dan@cgsoftware.com>
739
740 * ternary.c: New file - Ternary search tree implementation.
741
742 * Makefile.in: Add ternary.o, and ternary.c dependencies.
743
d02af173
ZW
7442001-04-03 Zack Weinberg <zackw@stanford.edu>
745
746 * make-temp-file.c (try): Inline.
747
94b68558
RH
7482001-02-28 Richard Henderson <rth@redhat.com>
749
750 * Makefile.in (make-temp-file.o): Depend on config.h.
751
27f66c0b
KG
7522001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
753
754 * memchr.c (memchr): Adjust condition to avoid infinite loop.
755
f1a0345c
JJ
7562001-03-23 Jakub Jelinek <jakub@redhat.com>
757
758 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
759 `_' not followed by a digit is invalid.
760
a519fba6
JB
7612001-03-22 Jim Blandy <jimb@redhat.com>
762
763 * cp-demangle.c (string_list_delete): Use dyn_string_delete
764 instead of free, to free the contents as well as the string
765 structure.
766
49ee944b
ZW
7672001-03-21 Zack Weinberg <zackw@stanford.edu>
768
769 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
770 Don't default P_tmpdir to anything. Try /var/tmp before
771 /usr/tmp.
772
33437dc7
ZW
7732001-03-20 Zack Weinberg <zackw@stanford.edu>
774
775 * choose-temp.c: Split off make_temp_file, and the code
776 duplicated between it and choose_temp_base, into...
777 * make-temp-file.c: ... here; new file.
778
779 * Makefile.in (CFILES): Add make-temp-file.c.
780 (REQUIRED_OFILES): Add make-temp-file.o.
781
7dce2eff
JB
7822001-03-20 Jim Blandy <jimb@redhat.com>
783
784 * cp-demangle.c (struct demangling_def): New fields:
785 is_constructor and is_destructor.
786 (demangling_new): Initialize them.
787 (demangle_ctor_dtor_name): Set them, if we detect a constructor
788 or destructor.
789 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
790 is_gnu_v3_mangled_dtor): New functions.
791
e03a61f1
JM
7922001-03-20 Jason Merrill <jason@redhat.com>
793
794 * cplus-dem.c (main): Skip initial $.
795
8860ddab
MM
7962001-03-15 Michael Meissner <meissner@redhat.com>
797
798 * hashtab.c (higher_prime_number): Silence warning that 4294967291
799 might be a signed integer under pre-ISO C systems.
800
2b757d51
NB
8012001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
802 John David Anglin <dave@hiauly1.hia.nrc.ca>
803
804 * libiberty/lbasename.c: New file.
805 * libiberty/Makefile.in: Update for lbasename.
806
1f50aafb
ZW
8072001-03-06 Zack Weinberg <zackw@stanford.edu>
808
809 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
810 * configure.in: Replace all alloca logic with a simple use of
811 the above new macro.
812 * config.table: Kill *-*-beos* entry.
813 * config/mh-beos: Delete.
814 * configure, config.in: Regenerate.
815
816 * Makefile.in (ALLOCA, HFILES): Kill.
817 (REQUIRED_OFILES): Add alloca.o.
818 (alloca.o): Depend on libiberty.h.
819 (argv.o): Don't depend on alloca-conf.h.
820 * alloca-conf.h: Delete.
821 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
822 blocks. Provide the C alloca unconditionally. Use PTR where
823 appropriate. Make i00afunc static.
824 * argv.c: Don't include alloca-conf.h.
825
d9fd5aae
JDA
8262001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
827
828 * cplus-dem.c (main): Cast enum style to int.
829
4031ed65
LR
8302001-02-16 Loren J. Rittle <ljrittle@acm.org>
831
832 * cplus-dem.c (main): Initialize style.
833
2ca46e8a
PE
8342001-02-02 Phil Edwards <pme@sources.redhat.com>
835
836 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
837
3b60dd8e
BM
8382001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
839
840 Add support for Java demangling under the v3 ABI:
841 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
842 (struct demangling_def): Add `style' field.
843 (demangling_new): New parameter `style'. Set it in demangling_t.
844 (demangle_prefix): Use NAMESPACE_SEPARATOR.
845 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
846 (cp_demangle): New parameter `style'. Pass it to demangling_new().
847 (main): Call cp_demangle with extra parameter.
848 (java_demangle_v3): New function.
849 (java_builtin_type_names): New. Table of primitive type names used
850 for Java demangling.
851 (demangle_builtin_type): Look up in java_builtin_type_names if doing
852 Java output.
1f50aafb 853 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
854 demangling.
855 (long_options): Remove obsolete `java' option.
856 (main): Remove explicit handling of `java' option. Instead, pass style
857 parameter in cplus_demangle flags as gdb does.
858 * testsuite/demangle.expected: Add some Java test cases.
859
584932e9
DD
8602000-12-29 DJ Delorie <dj@redhat.com>
861
862 * fnmatch.c: Make the note about the origins of this file more
863 accurate, at least until we can sync with glibc.
864 * getopt.c: Ditto.
865 * getopt1.c: Ditto.
866 * md5.c: Ditto.
867 * obstack.c: Ditto.
868
dac45916
MS
8692000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
870
871 * bsearch.c: New file.
872 * configure.in (funcs): Add bsearch.
873 (AC_CHECK_FUNCS): Likewise.
874 * configure, config.in: Regenerate.
875
a8e4a997
MS
8762000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
877
878 * safe-ctype.c: #include "ansidecl.h".
879 * strtod.c: Likewise.
880
75444da7
MS
8812000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
882
883 * strtoul.c: Include safe-ctype.h, not ctype.h.
884
f6bbde28
ZW
8852000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
886
887 * safe-ctype.c: New file.
888 * Makefile.in (CFILES): Add safe-ctype.c.
889 (REQUIRED_OFILES): Add safe-ctype.o.
890
891 * argv.c: Define ISBLANK and use it, not isspace.
892 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
893 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
894 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
895 before calling TOLOWER(c)/TOUPPER(c).
896
6c1ce62b 8972000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
898
899 * Makefile.in (distclean): When cleaning, remove testsuite.
900
b5d1497d
JM
9012000-12-05 Jason Merrill <jason@redhat.com>
902
903 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
904 name before allocating the dyn_string.
905
c6e13630
JM
9062000-12-04 Jason Merrill <jason@redhat.com>
907
908 * cp-demangle.c: s/new_abi/v3/.
909 * cplus-dem.c: Likewise.
910 (current_demangling_style): Now auto_demangling.
911 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 912 (main): Use standard symbol chars for auto_demangling.
c6e13630 913
a4c9b97e
MM
9142000-11-26 Mark Mitchell <mark@codesourcery.com>
915
916 * hashtab.c (higher_prime_number): Use a table, rather than a
917 seive, to find the next prime.
918
3b3bd9a7
L
9192000-11-22 H.J. Lu <hjl@gnu.org>
920
921 * cplus-dem.c (main): Handle gnat_demangling.
922
d1209685
ZW
9232000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
924
925 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
926 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
927 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
928 argument form of AC_DEFINE in dummy definitions block. Use
929 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
930 in dummy block. Preload cache variables instead of bypassing
931 tests, where possible.
932 * acconfig.h: Removed.
933
934 * xmalloc.c (xmalloc_failed): New function, does error
935 reporting on failed allocation.
936 (xmalloc, xcalloc, xrealloc): Use it.
937
cf183ac2
HPN
9382000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
939
940 * cplus-dem.c (cplus_demangle): Fix formatting.
941 (grow_vect): Ditto.
942 (ada_demangle): Ditto.
943 (internal_cplus_demangle): Ditto.
944 (mop_up): Ditto.
945
9462000-11-21 H.J. Lu <hjl@gnu.org>
947
948 * cplus-dem.c (main): Handle java_demangling.
949
8bcc782c
KG
9502000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
951
952 * cplus-dem.c (grow_vect): Prototype.
953 (ada_demangle): Cast the arg of ctype macros to unsigned char.
954
29120f44
HPN
9552000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
956
957 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
958 parameter `option'.
959
0437a5a8
KB
9602000-11-15 Kenneth Block <kenneth.block@compaq.com>
961
9e038f71 962 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
963 be used in GCC.
964
eab0c1ab 9652000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 966
29120f44 967 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
968 list.
969
d50d20ec
HPN
9702000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
971
972 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
973 xcalloc depending on htab->return_allocation_failure. Return zero
974 if calloc fails.
d50d20ec
HPN
975 (htab_create): Update comment to cover memory allocation.
976 (htab_try_create): New.
977 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 978 Update comment to cover this.
d50d20ec 979
35e9340f
HPN
9802000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
981
982 * hashtab.c: Change void * to PTR where necessary.
983 (htab_create, htab_expand): Correct formatting of comment before
984 function.
985
ea343d1a 9862000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
987
988 * cp-demangle.c (string_list_def): Add caret_position and comments.
989 (result_caret_pos): New macro.
990 (result_append_string): Rename to...
991 (result_add_string): ... this, and insert at caret position.
d1209685 992 Rename throughout.
0870bfd6
AS
993 (result_append): Rename to...
994 (result_add): ... this, and insert at caret position. Rename
d1209685 995 throughout.
0870bfd6
AS
996 (result_append_char): Rename to...
997 (result_add_char): ... this, and insert at caret position. Rename
d1209685 998 throughout.
0870bfd6
AS
999 (result_append_space): Remove.
1000 (string_list_new): Initialize caret position.
1001 (result_add_separated_char): Use caret position.
1002 (result_get_caret): New funtion.
1003 (result_set_caret): Likewise.
1004 (result_shift_caret): Likewise.
1005 (result_previous_char_is_space): Likewise.
1006 (substitution_start): Use caret position.
1007 (substitution_add): Likewise.
1008 (demangling_new): Initialize caret position.
1009 (demangle_encoding): Use caret position.
d1209685 1010 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1011 (demangle_type_ptr): Use switch statement. Handle pointers to
1012 arrays. Don't use result_append_space. Use caret position.
1013 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1014 call to demangle_array_type.
1015 (demangle_array_type): Add parameter to handle pointers to arrays.
1016
f15b9af9
MM
10172000-10-01 Mark Mitchell <mark@codesourcery.com>
1018
1019 * splay-tree.c (splay_tree_insert): Fix formatting.
1020
8f17b5c5
MM
10212000-09-16 Mark Mitchell <mark@codesourcery.com>
1022
1023 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1024
4eaa189a
MS
10252000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1026
1027 * splay-tree.c: #include <stdio.h>.
1028
29791078
HPN
10292000-09-14 Hans-Peter Nilsson <hp@axis.com>
1030
1031 * testsuite/demangle-expected: Add two tests for anonymous
1032 namespaces.
1033 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1034
2c9f4db7
MM
10352000-09-10 Mark Mitchell <mark@codesourcery.com>
1036
1037 * splay-tree.c (splay_tree_predecessor): New function.
1038 (splay_tree_successor): Likewise.
1039
bb22da4b
HPN
10402000-09-10 Hans-Peter Nilsson <hp@axis.com>
1041
1042 * testsuite/demangle-expected: Add four tests for type_info
1043 mangling.
bb22da4b
HPN
1044 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1045 for a non-template non-qualified type_info function or node.
1046
759e8187
AS
10472000-09-08 Alex Samuel <samuel@codesourcery.com>
1048
1049 * cp-demangle.c: Fix copyright banner.
1050
2ecd81ef
MS
10512000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1052
1053 * md5.c: #include "ansidecl.h".
1054
d93998ec
AS
10552000-09-06 Alex Samuel <samuel@codesourcery.com>
1056
1057 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1058 (demangle_type): Handle substitution candidates correctly in the
1059 face of special substitutions.
1060
1056d228
AS
10612000-09-05 Alex Samuel <samuel@codesourcery.com>
1062
1063 * cp-demangle.c (demangle_encoding): Rename variable.
1064 (demangle_name): Rename parameter. Handle return type
1065 suppression.
1066 (demangle_nested_name): Rename parameter.
1067 (demangle_prefix): Likewise. Change return type suppression.
1068 (demangle_unqualified_name): Add parameter. Flag constructors and
1069 conversion operators.
1070 (demangle_special_name): Fix comment.
1071 (demangle_type): Rename variable.
1072 (demangle_bare_function_type): Check for missing return type and
d1209685 1073 parameter.
1056d228
AS
1074 (demangle_class_enum_type): Rename parameter.
1075 (demangle_discriminator): Fix misspelling in comment.
1076
2f31ed7e
DD
10772000-08-31 DJ Delorie <dj@redhat.com>
1078
1079 * configure.in (Cygwin): special case cygwin only when we're
1080 building cygwin, not when we're hosting cygwin.
1081
02bcb9c6
AS
10822000-09-04 Alex Samuel <samuel@codesourcery.com>
1083
1084 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1085 <expression>.
1086
aee749cf
AS
10872000-09-04 Alex Samuel <samuel@codesourcery.com>
1088
1089 * cp-demangle.c (demangle_type_ptr): Increment position past
1090 pointer and reference characters.
1091
92a16bbe
AS
10922000-09-04 Alex Samuel <samuel@codesourcery.com>
1093
1094 * cp-demangle.c (demangle_nv_offset): New function.
1095 (demangle_v_offset): Likewise.
1096 (demangle_call_offset): Likewise.
1097 (demangle_special_name): Update thunk demangling to comply with
1098 ABI changes.
d1209685 1099
31e0ab1f
AS
11002000-09-03 Alex Samuel <samuel@codesourcery.com>
1101
1102 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1103 (substitution_def): Remove template_parm_number.
1104 (NOT_TEMPLATE_PARM): Remove.
1105 (result_insert_string): New macro.
1106 (result_insert): Likewise.
1107 (result_insert_char): Likewise.
1108 (substitution_add): Remove last parameter. Don't store template
d1209685 1109 parm number.
31e0ab1f
AS
1110 (BFT_NO_RETURN_TYPE): Define as NULL.
1111 (demangle_encoding): Adjust call to demangle_bare_function_type.
1112 (demangle_name): Adjust substitution. Adjust call to
d1209685 1113 substitution_add.
31e0ab1f
AS
1114 (demangle_prefix): Adjust call to substitution_add.
1115 (demangle_identifier): Handle anonymous namespaces.
1116 (demangle_operator_name): Change demangling of vendor-extended
1117 operator to match ABI changes.
1118 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1119 substitutions here.
31e0ab1f
AS
1120 (demangle_type): Adjust calls to demangle_template_param,
1121 substitution_add, and demangle_type_ptr. Fix substitution of
1122 templated types.
1123 (demangle_function_type): Change parameter to a pointer.
1124 (demangle_bare_function_type): Likewise. Adjust insertion point.
1125 (demangle_template_param): Remove last parameter.
1126 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1127 demangle_template_param.
31e0ab1f
AS
1128 (is_mangled_char): Accept `$' and `.'.
1129 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1130 * dyn-string.c (dyn_string_insert_char): New function.
1131
ccbc3eb7
HPN
11322000-08-31 Hans-Peter Nilsson <hp@axis.com>
1133
1134 * testsuite/demangle-expected: Add nine tests for
1135 underscore-after-number followed by five tests for name-signature
1136 delimiter.
1137
53dce582
RH
11382000-08-28 Richard Henderson <rth@cygnus.com>
1139
1140 * Makefile.in (md5.o): Depend on config.h.
1141
881c6935
JM
11422000-08-28 Jason Merrill <jason@redhat.com>
1143
1144 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1145 (CFILES): Add md5.c.
1146 * md5.c: New file.
1147
a440fd19
AS
11482000-08-27 Alex Samuel <samuel@codesourcery.com>
1149
1150 * cp-demangle.c (demangle_name): Initialize template_p in local
1151 name case. Don't re-add substitutions as candidates.
1152 (demangle_nested_name): Use <unqualified-name>.
1153 (demangle_prefix): Likewise. Don't add template names as
1154 substitution candidates twice, or re-add a substitution or the
1155 last prefix component.
1156 (demangle_local_name): Adjust output format.
1157
d01ce591
AS
11582000-08-25 Alex Samuel <samuel@codesourcery.com>
1159
1160 * cp-demangle.c (result_add_separated_char): Change parameter to
1161 int.
1162 (substitution_add): Don't check for duplicates. Check if
1163 previously allocated size is zero.
1164 (demangle_name): Remove duplicate check for std substitution.
1165 Clear template flag appropriately.
1166 (demangle_prefix): Remove argument to demangle_substitution.
1167 Don't check that template flag is already set.
1168 (demangle_operator_name): Add pt operator.
1169 (demangle_type): Don't treat r as built-in type. Remove argument
1170 to demangle_substitution. Fix substitution candidate mechanics.
1171 Handle <template-template-parm>s. Improve comments.
d1209685 1172 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1173 (demangle_substitution): Remove parameter.
1174 (print_usage): Remove extra fprintf option.
1175
2f59c8eb
GM
11762000-08-24 Greg McGary <greg@mcgary.org>
1177
1178 * libiberty/random.c (end_ptr): Revert previous change.
1179
2f26c11d
GM
11802000-08-24 Greg McGary <greg@mcgary.org>
1181
1182 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1183 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1184 * libiberty/random.c (end_ptr): Likewise.
1185
e282c9c9
AS
11862000-08-23 Alex Samuel <samuel@codesourcery.com>
1187
1188 * cp-demangle.c (result_close_template_list): Remove function.
1189 (result_add_separated_char): New function.
1190 (result_open_template_list): New macro.
1191 (result_close_template_list): Likewise.
1192 (demangle_prefix): Don't set template_p if the
1193 prefix ends with a ctor name.
1194 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1195 (demangle_type): Check for template args after substitution.
1196 (demangle_template_args): Use result_open_template_list.
d1209685 1197
c9b6494a
ZW
11982000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1199
1200 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1201
d1209685 12022000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1203
1204 * config/mh-openedition.h: Added -DLE370 definition.
1205
0aab2795
ME
12062000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1207
1208 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1209 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1210 Cast program to 'char *' in errmsg_arg assignment.
1211 (PWAIT_ERROR): Define.
1212 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1213 to DJGPP's WIF* macros.
1214
c2f275e4
RB
12152000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1216 Jeff Law <law@cygnus.com>
1217
73aa9564
RB
1218 * getcwd.c: Include string.h, stdlib.h for prototypes
1219
c2f275e4 1220 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1221 * rename.c: Include config.h, unistd.h
1222 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1223
ccbc3eb7
HPN
12242000-07-24 Hans-Peter Nilsson <hp@axis.com>
1225
1226 * cplus-dem.c (work_stuff_copy_to_from): New.
1227 (delete_non_B_K_work_stuff): New.
1228 (delete_work_stuff): New.
1229 (mop_up): Break out work_stuff partly destruction to
1230 delete_non_B_K_work_stuff.
1231 (iterate_demangle_function): New.
1232 (demangle_prefix): Call iterate_demangle_function instead of
1233 demangle_function_name. Leave handling of name-signature
1234 __-delimiters to iterate_demangle_function.
1235 (demangle_integral_value): Strip an optional
1236 following underscore cautiously. Handle negative numbers.
1237
3388651c
DB
12382000-07-24 Daniel Berlin <dberlin@redhat.com>
1239
d1209685 1240 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1241 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1242
0fac482e
AS
12432000-07-21 Alex Samuel <samuel@codesourcery.com>
1244
1245 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1246 allocating ctor mangling.
1247 (demangle_array_type): Handle empty and non-constant array length.
1248
8502a100 12492000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1250 Jeff Law <law@cygnus.com>
1251
c6451ce1
MS
1252 * configure.in (AC_CHECK_HEADERS): Add time.h.
1253 (AC_HEADER_TIME): Add check.
1254 * configure, config.in: Regenerate.
1255 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1256
cd447360
MS
1257 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1258 * configure, config.in: Regenerate.
1259 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1260 * strtol.c, strtoul.c: #include "config.h". Portably #include
1261 <limits.h> and/or <sys/param.h>.
1262 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1263
3b58c099
MS
1264 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1265 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1266 * configure, config.in: Regenerate.
1267 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1268
8502a100
MS
1269 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1270
da0c7743
MS
12712000-07-21 Mike Stump <mrs@wrs.com>
1272
1273 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1274 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1275
838f8562
KG
12762000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1277
1278 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1279
1280 * setenv.c (setenv): Initialize variable `ep'.
1281
1282 * sigsetmask.c (abort): Prototype.
1283
1284 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1285 __STDC__ for stdarg.h include.
1286 (int_vasprintf): Prototype.
1287 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1288 definition. Cast `global_total_width' in comparison.
1289 (main): Prototype. Return a value.
1290
1291 * vfork.c (fork): Prototype.
1292
1293 * xexit.c: Include config.h.
1294
e9958132
JM
12952000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1296
1297 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1298 and print it with %u.
1299
39a6492f
HPN
13002000-07-17 Hans-Peter Nilsson <hp@axis.com>
1301
1302 * testsuite/regress-demangle (failed test): Show result and
1303 expected output.
1304
6d0be369
AH
13052000-07-07 Andrew Haley <aph@cygnus.com>
1306
1307 * cplus-dem.c (main): fflush() after emitting last char before
1308 waiting for input.
1309
bece74bd
AS
13102000-06-28 Alex Samuel <samuel@codesourcery.com>
1311
1312 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1313 (demangle_name): Handle <substitution> followed by
1314 <unqualified-template-name>.
1315 (demangle_type): Follow special substitutions with
1316 <class-enum-type>
1317 (demangle_subtitution): Set template_p for special substitutions.
1318 (main): Fix typos.
d1209685 1319
229b8ec7
AS
13202000-06-27 Alex Samuel <samuel@codesourcery.com>
1321
1322 * cp-demangle.c (demangle_special_name): Swap base and derived
1323 class when demangling construction vtables.
1324
051664b0
AS
13252000-06-21 Alex Samuel <samuel@codesourcery.com>
1326
1327 * cp-demangle.c: Don't include ctype.h.
1328 (IS_DIGIT): New macro.
1329 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1330 instead of isdigit and isalpanum.
1331 (demangling_def): Make name and next const pointers.
1332 (STATUS_ALLOCATION_FAILED): New status code.
1333 (dyn_string_append_space): Handle failure in
1334 dyn_string_append_char.
1335 (int_to_dyn_string): Likewise. Change return value to status_t.
1336 (string_list_new): Handle failure of dyn_string_init.
1337 (result_close_template_list): Change return type to status_t.
1338 Handle failure in dyn_string_append.
1339 (result_push): Change return value to status_t. Handle failure in
1340 string_list_new. Handle failure of result_push throughout.
1341 (substitution_add): Change return value to status_t. Handle
1342 dyn_string failures. Handle failure of substitution_add
1343 throughout.
1344 (template_arg_list_new): Return NULL on allocation failure.
1345 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1346 Handle error result throughout.
1347 (result_append): Likewise.
1348 (result_append_char): Likewise.
1349 (result_append_space): Likewise.
1350 (demangling_new): Make argument a const pointer. Handle
1351 allocation failures.
1352 (demangle_template_args): Handle failure in template_arg_list_new
1353 and result_close_template_list.
1354 (demangle_discriminator): Return if int_to_dyn_string fails.
1355 (cp_demangle): Likewise.
1356 (cp_demangle_type): New function.
1357 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1358 memory allocation failure.
1359 (main): Likewise.
1360 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1361 IN_LIBGCC2.
1362 (dyn_string_init): Change return value to int. Handle
1363 RETURN_ON_ALLOCATION_FAILURE case.
1364 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1365 (dyn_string_release): Delete the dyn_string.
1366 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1367 (dyn_string_copy): Change return type to int.
1368 (dyn_string_copy_cstr): Likewise.
1369 (dyn_string_prepend): Likewise.
1370 (dyn_string_prepend_cstr): Likewise.
1371 (dyn_string_insert): Likewise.
1372 (dyn_string_insert_cstr): Likewise.
1373 (dyn_string_append): Likewise.
1374 (dyn_string_append_cstr): Likewise.
1375 (dyn_string_append_char): Likewise.
1376 (dyn_string_substring): Likewise.
d1209685 1377
fe06b696
ZW
13782000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1379
1380 * cp-demangle.c (demangle_operator_name): Add spaces before
1381 names beginning with a letter: delete, delete[], new, new[],
1382 sizeof.
1383 (demangle_special_name): Handle TF <type> and TJ <type>.
1384
6223e158
PDM
1385Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1386
1387 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1388
48f3e29b
PDM
1389Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1390
1391 * cp-demangle.c (stdio.h): File included unconditionaly.
1392 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1393 * dyn-string.c (stdio.h): File included.
1394 * partition.c (partition_print): No `&' needed to take the address of
1395 a function.
1396
69197e7e
KG
13972000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1398
1399 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1400
69197e7e
KG
1401 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1402
1403 * cp-demangle.c (demangle_char): Change parameter from char to int.
1404 (demangle_expression, demangle_expr_primary): Remove extra
1405 semi-colon in prototype.
1406
1407 * dyn-string.c (dyn_string_append_char): Change parameter from
1408 char to int.
1409
1410 * memcmp.c (memcmp): Constify.
1411
1412 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1413 __extension__.
1414
1415 * partition.c (elem_compare): Prototype. Don't cast away
1416 const-ness.
1417
1418 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1419
7eb23b1f
KG
14202000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1421
1422 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1423
1424 * cp-demangle.c: Include demangle.h.
1425 (template_arg_list_new): DeANSIfy.
1426 (cp_demangle): Make static and add prototype.
1427 (operator_code, operators): Constify.
1428 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1429
3faa108c
AS
14302000-06-05 Alex Samuel <samuel@codesourcery.com>
1431
1432 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1433 unsigned char.
1434 (demangle_unqualified_name): Likewise.
1435 (demangle_number_literally): Likewise.
1436 (demangle_type): Likewise.
1437 (demangle_substitution): Likewise.
1438 (is_mangled_char): Likewise, for isalnum.
1439
69afa80d
AS
14402000-06-04 Alex Samuel <samuel@codesourcery.com>
1441
1442 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1443 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1444 (cp-demangle.o): New dependency.
1445 (dyn-string.o): Likewise.
1446
1447 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1448
1449 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1450 demangler.
1451 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1452 demangling mode.
1453 (gnu_new_abi_symbol_characters): New function.
1454 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1455 file.
1456 * cp-demangle.c: New file.
d1209685 1457
0b72c3df
AC
1458Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1459
1460 * floatformat.c: Add name to each floatformat field.
1461
270cea06
JL
1462Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1463
1464 * Makefile.in (objalloc.o): Depend on config.h
1465
d11ec6f0
ZW
14662000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1467
1468 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1469 if HAVE_STRING_H.
1470 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1471 * objalloc.c: Include config.h. Include stdlib.h and don't
1472 declare malloc or free if HAVE_STDLIB_H.
1473 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1474 else declare malloc without prototype. Include string.h if
1475 HAVE_STRING_H, else declare memset without prototype. Don't
1476 include stddef.h.
1477
f8e2da56
MS
14782000-05-23 Mike Stump <mrs@wrs.com>
1479
1480 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 1481 -j3.
f8e2da56 1482
650f3068
DA
14832000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1484
1485 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1486
1d2da2e1
HB
14872000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1488
d1209685 1489 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
1490 probably zero, also eliminate a warning on alpha.
1491
47668d0a
DE
14922000-05-15 David Edelsohn <edelsohn@gnu.org>
1493
c7a79a32 1494 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
1495 on $(enable_shared).
1496
36348eab
JJ
14972000-05-10 Jakub Jelinek <jakub@redhat.com>
1498
1499 * config.table: Use mh-sparcpic for sparc*-*-*.
1500
209bbe34
NC
15012000-05-08 Nick Clifton <nickc@cygnus.com>
1502
1503 * Makefile.in (CFILES): Add strncmp.c.
1504 (NEEDED): Add strncmp.
1505
a85a47fb
KG
15062000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1507
1508 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1509 Cast the arguments to `islower' to `unsigned char'.
1510 (print_demangler_list): Prototype.
1511
4aef973c
PDM
1512Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1513
1514 * sort.c (UCHAR_MAX): Provide fallback definition.
1515
3b94497c
AO
15162000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1517
1518 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1519 SUBDIRS.
1520
24eaa47a
KB
15212000-04-28 Kenneth Block <block@zk3.dec.com>
1522 Jason Merrill <jason@casey.cygnus.com>
1523
d1209685
ZW
1524 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1525 (cplus_demangle_set_style): New function for setting style.
1526 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 1527
a9266bfa
KG
15282000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1529
1530 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1531
1532 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1533 (libiberty_AC_FUNC_STRNCMP): Invoke.
1534
1535 * strncmp.c: New file.
1536
8e02c4d0
JH
1537Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1538
1539 * hashtab.c (htab_expand): Add prototype.
1540 (find_empty_slot_for_expand): Likewise.
1541
4feeaae3
KG
15422000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1543
1544 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1545 match prototype.
1546 (htab_expand): Cast the return value of xcalloc.
1547
18a94a2f
MM
15482000-04-24 Mark Mitchell <mark@codesourcery.com>
1549
1550 * hashtab.c (hash_pointer): New function.
1551 (eq_pointer): Likewise.
1552 (htab_hash_pointer): New variable.
1553 (htab_eq_pointer): Likewise.
1554
eeb0656f
MM
15552000-04-23 Mark Mitchell <mark@codesourcery.com>
1556
b51024fc
MM
1557 * sort.c (sort_pointers): Fix endianness bugs.
1558
eeb0656f
MM
1559 * sort.c: New file.
1560 * Makefile.in (CFILES): Add sort.c
1561 (REQUIRED_OFILES): Add sort.o.
1562 (sort.o): New target.
1563
7277f72d
MS
15642000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1565
1566 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1567 4.3BSD systems.
1568
e38992e8
RK
1569Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1570
1571 * hashtab.c: Various minor cleanups.
1572 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1573 (htab_find_slot): Likewise.
1574
498e1ab1
DP
15752000-04-16 Dave Pitts <dpitts@cozx.com>
1576
1577 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1578
dc17cc7b
RH
15792000-04-05 Richard Henderson <rth@cygnus.com>
1580
1581 * splay-tree.c (splay_tree_remove): New.
1582
b13eb66b
MM
15832000-03-30 Mark Mitchell <mark@codesourcery.com>
1584
1585 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1586 codes.
1587 (htab_find_with_hash): Likewise.
1588 (htab_find_slot_with_hash): Likewise.
d1209685 1589
0194e877
ZW
15902000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1591
1592 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1593 unless it will be used. Rearrange loop for better
1594 optimization.
1595 (higher_prime_number): Add static prototype.
1596
abc61fd4
JL
1597Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1598
1599 * Makefile.in (partition.o): Depend on config.h
1600
8c5d513f
BS
16012000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1602
1603 * hashtab.c (find_empty_slot_for_expand): New function.
1604 (htab_expand): Use it instead of htab_find_slot.
1605 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1606 argument HASH.
1607 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1608 (htab_find): New wrapper function.
1609 (htab_find_slot): Likewise.
1610 (htab_traverse): Pass slot, not entry, to called function.
1611
d9d4fb43
AS
16122000-03-09 Alex Samuel <samuel@codesourcery.com>
1613
1614 * Makefile.in (CFILES): Add partition.c.
1615 (REQUIRED_OFILES): Add partition.o.
1616 (partition.o): New rule.
1617 * partition.c: New file.
d1209685 1618
5dc9cffd
ZW
16192000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1620
1621 * hashtab.c (htab_create): Set del_f.
1622 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1623 Use it.
1624
5194cf08
ZW
16252000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1626
1627 * hashtab.c: Remove debugging variables (all_searches,
1628 all_collisions, all_expansions). Delete
1629 all_hash_table_collisions.
1630 (create_hash_table, delete_hash_table, empty_hash_table,
1631 find_hash_table_entry, remove_element_from_hash_table_entry,
1632 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1633 hash_table_elements_number, hash_table_collisions): Rename to:
1634 htab_create, htab_delete, htab_empty, htab_find_slot,
1635 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1636 htab_elements, htab_collisions.
1637 (htab_find): New function, handles common case where you don't
1638 plan to add or delete an entry.
1639 (htab_expand): Don't create a whole new table, just a new
1640 entry vector.
1641 (htab_find_slot): Simplify logic.
1642
5ad5a984
ILT
16431999-08-03 Ian Lance Taylor <ian@zembu.com>
1644
1645 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1646 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1647
1648 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1649 $(TARGETLIB)n so it works on MSDOS.
1650 (install_to_tooldir): Likewise.
1651
16521999-07-21 Ian Lance Taylor <ian@zembu.com>
1653
1654 From Mark Elbrecht:
1655 * makefile.dos: Remove; obsolete.
1656 * configure.bat: Remove; obsolete.
1657
16581999-07-11 Ian Lance Taylor <ian@zembu.com>
1659
1660 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1661 warning.
1662
aeecce42
MK
16632000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1664
1665 * pexecute.c: Conditionally include string.h.
5194cf08 1666 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1667
1eaf7d9c
KG
16682000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1669
1670 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1671 we're using gcc.
1672
1673 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1674
0fadedb2
GK
16751999-12-27 Geoff Keating <geoffk@cygnus.com>
1676
1677 * vasprintf.c (int_vasprintf): Don't re-read the format character
1678 as this mishandles strings like '%%s'.
1679
08230f26
MM
16801999-12-05 Mark Mitchell <mark@codesourcery.com>
1681
1682 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1683 rather than struct splay_tree_node.
1684 (splay_tree_insert): Use struct splay_tree_s rather than struct
1685 splay_tree.
1686
6de9b8ff
PDM
1687Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1688
1689 * hashtab.c (sys/types.h): File included.
1690
f3636679
JM
16911999-11-22 Jason Merrill <jason@casey.cygnus.com>
1692
1693 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1694 BSD license, pursuant with
1695
1696 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1697
36dd3a44
JL
1698Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1699
1700 * hashtab.c: Include stdio.h.
1701
6e300472
JL
1702Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1703
1704 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1705
df548dfc
PDM
1706Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1707
1708 * xstrdup (sys/types.h): Include this file.
1709
2c375143
NS
17101999-10-28 Nathan Sidwell <nathan@acm.org>
1711
1712 * Makefile.in (SUBDIRS): New macro.
1713 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1714 avoid multiple subdirectory cleaning.
1715 (*-subdir): Use SUBDIRS.
1716
a82cecda
JK
17171999-10-25 Jim Kingdon <http://developer.redhat.com/>
1718
1719 * cplus-dem.c: Move declarations of standard_symbol_characters and
1720 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1721 warnings.
1722
ed38f5d5
ZW
17231999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1724
1725 * hashtab.c (find_hash_table_entry): When returning a
1726 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1727 (clear_hash_table_slot): New function which deletes an entry
1728 by its position in the table, not its value.
1729 (traverse_hash_table): New function which calls a hook
1730 function for every live entry in the table.
1731
b60fe4a7
MM
17321999-10-19 Mark Mitchell <mark@codesourcery.com>
1733
1734 * cplus-dem.c (INTBUF_SIZE): New macro.
1735 (string_append_template_idx): New function.
1736 (demangle_expression): Likewise.
1737 (demangle_integral_value): Use it.
1738 (demangle_real_value): New function, split out from ...
1739 (demangle_template_value_parm): ... here. Use
1740 string_append_template_idx. Use demangle_real_value.
1741 (demangle_template): Use string_append_template_idx.
1742 (demangle_qualified): Use consume_count_with_underscores.
1743 (get_count): Tweak formatting.
1744 (do_type): Use string_append_template_idx.
5194cf08 1745
3da5522a
KG
17461999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1747
1748 * calloc.c: Add a public domain notice.
1749
d7d36ea8
PDM
1750Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1751
1752 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1753
a2f945c6
VM
1754Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1755
1756 * Makefile.in (CFILES): Add hashtab.c
1757 (REQUIRED_OFILES): Add hashtab.o
1758 (hashtab.o): Add dependencies.
1759 * hashtab.c: New file
1760
7f22ec2e
MK
1761Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1762
1763 * basename.c (DIR_SEPARATOR): New macro.
1764 (DIR_SEPARATOR_2): Likewise.
1765 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1766 (IS_DIR_SEPARATOR): Likewise.
1767 (main): Handle MSDOS style pathname.
1768
7c56a6ce
MM
17691999-10-11 Mark Mitchell <mark@codesourcery.com>
1770
1771 * cplus-dem.c (do_type): Handle pointer to member types whose
1772 enclosing classes have namespace scope.
1773
cd32188b
ME
1774Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1775
1776 * config.table: Provide a backup shell for executing move-if-change.
1777
fc232f7a
MM
17781999-10-02 Mark Mitchell <mark@codesourcery.com>
1779
1780 * xmalloc.c (xmalloc): Fix spelling error.
1781 (xcalloc, xrealloc): Likewise.
1782
2a138827
KG
17831999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1784
1785 * cplus-dem.c (fancy_abort, demangle_integral_value,
1786 demangle_arm_hp_template, recursively_demangle,
1787 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1788 (program_name, program_version, fatal): Constify a char*.
1789 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1790 (main): Call return, not exit.
1791
5a657fc3
KG
17921999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1793
1794 * choose-temp.c: Remove obsolete comment about gcc.
1795 (make_temp_file): Constify a char*.
1796
33c5ddcd
KG
1797Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1798
1799 * xmemdup.c: Include sys/types.h.
1800
b10647f1
JG
18011999-09-07 Jeff Garzik <jgarzik@pobox.com>
1802
1803 * xmemdup.c: New xmemdup function.
1804 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1805
3dd6c3af
LV
1806Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1807
5194cf08 1808 * config.table: Add openedition target.
3dd6c3af
LV
1809 * config/mh-openedition: New file.
1810
19e28e2a
ME
1811Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1812
1813 * pexecute.c (pexecute): Fill in temp_base when needed.
1814
4dfeccf9
RH
18151999-08-31 Richard Henderson <rth@cygnus.com>
1816
1817 * getpwd.c: Check HAVE_GETCWD before defining it away.
1818
4ac3cb83
KG
18191999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1820
1821 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1822 (REQUIRED_OFILES): Add getpwd.o.
1823 (getpwd.o): Add target.
1824
1825 * configure.in (AC_PREREQ): Bump to 2.13.
1826 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1827
1828 * getpwd.c: New file, moved here from gcc.
1829
e797ff70
KG
18301999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1831
1832 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1833 comparing against a signed quantity.
1834 (arm_special): Likewise.
1835 (demangle_fund_type): Likewise.
1836 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1837 ATTRIBUTE_UNUSED.
e797ff70
KG
1838 (main): Constify variable `valid_symbols'.
1839
55247fce
PDM
1840Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1841
1842 * strtoul.c (strtoul): Add parentheses around && within ||.
1843
76632dd0
DJ
1844Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1845
1846 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1847 libdir, libsubdir and tooldir.
1848
d080bbfa
MM
18491999-08-01 Mark Mitchell <mark@codesourcery.com>
1850
1851 * splay-tree.c (splay_tree_insert): Return the new node.
1852
a81c752a
RH
18531999-07-14 Richard Henderson <rth@cygnus.com>
1854
5194cf08 1855 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1856 prototyping directly.
1857 * choose-temp.c: Conditionally include string.h.
1858
8f1824d9
JM
18591999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1860
1861 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1862
652374d3
ILT
18631999-07-11 Ian Lance Taylor <ian@zembu.com>
1864
1865 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1866 warning.
1867
a4494286
JM
18681999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1869
1870 * Makefile.in (needed-list): Only include stuff we actually need
1871 for libstdc++.
1872
90e72e20
AS
18731999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1874
1875 * configure.in (checkfuncs): Add gettimeofday.
1876 * config.in, configure: Regenerated.
1877
b569200e
MK
1878Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1879
1880 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1881 the test fails.
1882 * configure: Regenerate.
1883
73919448
MS
18841999-06-10 Mike Stump <mrs@wrs.com>
1885
1886 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1887 parallel builds.
1888
fee9125c
KG
18891999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1890
1891 * putenv.c: Include ansidecl.h to define `const'.
1892 * setenv.c: Likewise.
1893
71cce721
MN
1894Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1895
a7c9637f
JL
1896 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1897 * configure.in (funcs): Add putenv and setenv.
1898 (AC_CHECK_FUNCS): Check for putenv and setenv.
1899 * configure: Rebuilt.
1900 * putenv.c setenv.c: New files.
1901
71cce721
MN
1902 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1903 bytes of space using malloc.
1904
53504016
SG
1905Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1906
1907 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1908 the *mangled pointer beyond the end of the string. Clean up code to
1909 match prevailing coding style.
1910
34842539
MH
19111999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1912
1913 * tmpnam.c (L_tmpnam): Fix typo.
1914
3a08531d
ME
1915Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1916
1917 * cplus-dem.c (standard_symbol_characters): Renamed from
1918 standard_symbol_alphabet. No longer modify TABLE.
1919 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1920 modify TABLE.
1921 (main): Corresponding changes. Use strchr to determine if a
1922 character is valid.
1923
8db9d08b
JB
19241999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1925
1926 * cplus-dem.c (main): Use table lookup to distinguish identifier
1927 characters from non-identifier characters.
1928 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1929
6a071f4a
FF
1930Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1931
1932 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1933 * getruntime.c: Only attempt to include sys/resource.h and
1934 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1935 are defined.
1936
7dd88617
DT
1937Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1938
1939 * configure.in (alloca detection): Handle alloca directly for interix.
1940 * configure: Rebuilt.
1941
7a1528bc
MK
1942Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1943
1944 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1945
76409268
JB
19461999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1947
1948 Fix from Dale Hawkins:
5194cf08 1949 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
1950 reallocated properly if we use it again.
1951
1952 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1953 stricter about syntax. Always null-terminate string.
1954
acbbd80a
MK
1955Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1956
1957 * configure.in (checkfuncs): Check for sbrk.
1958 * config.in: Rebuilt.
1959 * configure: Likewise.
1960 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1961
92523551
JB
19621999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1963
1964 Fix from Marcus Daniels:
1965 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1966 identifier looking for another underscore.
1967
36eb4217
MK
1968Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1969
1970 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1971 * xmalloc.c: Likewise.
1972 (xcalloc): UWIN has sbrk.
1973 (xrealloc): Fix guard macro.
1974
2c45d1a0
RH
19751999-04-11 Richard Henderson <rth@cygnus.com>
1976
1977 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1978 or <alloca.h>.
1979 * clock.c (GNU_HZ): New definition.
1980 (clock): Use it.
1981 * getruntime.c: Likewise.
1982
1983 * config.table: Use mh-beos.
1984 * config/mh-beos: New file.
1985
391cdef0
MM
19861999-04-11 Mark Mitchell <mark@codesourcery.com>
1987
1988 * cplus-dem.c (demangle_template_value_parm): Handle
1989 pointers-to-members.
1990 (do_type): Handle template parameters as qualifiers.
1991
9d229989
JB
19921999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1993
1994 * cplus-dem.c: Attempt to handle overflows in counts with some
1995 semblance of grace.
1996 (consume_count): Detect overflows. Return -1 to indicate errors,
1997 instead of zero.
1998 (demangle_template_value_parm, demangle_template): Handle change
1999 to consume_count's return convention.
2000
7c72138a
TT
20011999-04-05 Tom Tromey <tromey@cygnus.com>
2002
2003 * testsuite/regress-demangle: New file.
2004 * testsuite/demangle-expected: New file.
2005
2006 * Makefile.in (all, check, installcheck, info, install-info,
2007 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2008 distclean, maintainer-clean, realclean): Depend on corresponding
2009 `-subdir' target.
2010 (all-subdir check-subdir installcheck-subdir info-subdir
2011 install-info-subdir clean-info-subdir dvi-subdir
2012 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2013 distclean-subdir maintainer-clean-subdir): New target.
2014 * testsuite/Makefile.in: New file.
2015 * configure: Rebuilt.
2016 * configure.in: Create testsuite/Makefile.
2017
ae7f7270
MM
20181999-04-02 Mark Mitchell <mark@codesourcery.com>
2019
2020 * splay-tree.h (splay_tree_compare_pointers): Define.
2021
30f72379
MM
20221999-03-30 Mark Mitchell <mark@codesourcery.com>
2023
2024 * splay-tree.c (splay_tree_compare_ints): Define.
2025
4cc48683
TT
20261999-03-30 Tom Tromey <tromey@cygnus.com>
2027
2028 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2029 don't advance input pointer.
2030 (demangle_class_name): If consume_count didn't find a count, do
2031 nothing. Don't bother with `strlen' sanity check; consume_count
2032 does it for us.
2033
3510075c
JL
20341999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2035
2036 From Art Haas <ahaas@neosoft.com>:
2037 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2038 when doing arm or hp style.
2039 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2040
89f602a7
MK
2041Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2042
2043 * pexecute.c (__CYGWIN32__): Rename to
2044 (__CYGWIN__): this.
2045 * xmalloc.c: Likewise.
2046
2047 Changes to support i386-pc-uwin.
2048 * configure.in (*-*-uwin*): Workaround for vfork bug.
2049 * configure: Regenerate.
2050 * pexecute.c (pexecute): Be like standard Unix.
2051 (pwait): Likewise.
2052 * xmalloc.c (first_break): Define.
2053 (xmalloc_set_program_name): Use.
2054 (xmalloc): Use.
2055
9346c824
FS
2056Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2057
2058 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2059
3510075c
JL
2060Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2061
2062 * config.table: Check cygwin*, not cygwin32*.
2063
8ec65f13
DB
2064Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2065
2066 * Makefile.in: Change mkstemp -> mkstemps.
2067
687361c8
ME
2068Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2069
2070 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2071 * configure.in (funcs): Check for and conditionally add mkstemps to
2072 the list of functions libiberty will provide.
2073 * configure: Rebuilt.
5194cf08 2074
b207e09c
MK
2075Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2076
5194cf08 2077 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2078 platforms that don't have HZ.
2079 * getruntime.c (HZ): Likewise.
2080
16b4c15e
RH
2081Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2082
2083 * Makefile.in (xstrdup.o): Depend on config.h.
2084
38beb75c
UD
2085Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2086
2087 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2088 freeing it.
2089
7e4311a3
KG
2090Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2091
2092 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2093
3510075c
JL
2094Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2095
2096 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2097 splay-tree.o.
2098
20991999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2100
2101 * configure.in: Require autoconf 2.12.1 or higher.
2102
fb9939b8
MM
21031998-12-30 Michael Meissner <meissner@cygnus.com>
2104
2105 * random.c (NULL): Don't redefine NULL if it is already defined.
2106
087aa398
KG
2107Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2108
2109 * argv.c (buildargv): Cast the result of alloca in assignment.
2110
2111 * choose-temp.c: Include stdlib.h.
38beb75c 2112
087aa398 2113 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2114 (snarf_numeric_literal): Constify first parameter.
2115 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2116 int, not a char.
087aa398
KG
2117 (demangle_qualifier): Likewise.
2118 (demangle_signature): Cast the argument of a ctype function to
2119 unsigned char.
2120 (arm_pt): Add parens around assignment used as truth value.
2121 (demangle_arm_hp_template): Constify variable `args'.
2122 (do_hpacc_template_const_value): Cast the argument of a ctype
2123 function to unsigned char.
2124 (do_hpacc_template_literal): Remove unused variable `i'.
2125 (snarf_numeric_literal): Constify parameter `args'.
2126 Cast the argument of a ctype function to unsigned char.
2127
2128 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2129 avoid ambiguous `else'.
38beb75c 2130
087aa398 2131 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2132 `cstart' and `cend' to unsigned char. Cast the argument of macro
2133 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2134
2135 * objalloc.c (free): Add prototype.
2136
21f2174d
HPN
2137Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2138
2139 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2140
3510075c
JL
2141Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2142
2143 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2144 doesn't exist.
3510075c 2145 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2146
e8fc8222
AM
2147Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2148
2149 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2150 bumping the pointer we read from. Also prepend these codes,
2151 as we do in other places.
2152
3510075c
JL
21531998-12-18 Nick Clifton <nickc@cygnus.com>
2154
2155 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2156 'const char *' in order to match its usage when calling siblings.
2157 (snarf_numeric_literal): Make first arg 'const char **' in order
2158 to match usage.
11a0bb74 2159
f4f30aa1
JL
2160Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2161
11a0bb74
KG
2162 * choose-temp.c: Don't check IN_GCC anymore.
2163
2164 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2165 * memchr.c (memchr): Likewise.
2166 * memcpy.c (memcpy): Likewise.
2167 * memmove.c (memmove): Likewise.
38beb75c 2168
11a0bb74
KG
2169 * mkstemp.c: Don't check IN_GCC anymore.
2170 * pexecute.c: Likewise.
2171 * splay-tree.c: Likewise.
38beb75c 2172
11a0bb74
KG
2173 * strchr.c (strchr): Use `const', not `CONST'.
2174 * strrchr.c (strrchr): Likewise.
2175 * strtol.c (strtol): Likewise.
2176 * strtoul.c (strtoul): Likewise.
2177
70d5ccef
DT
2178Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2179 Elena Zannoni <ezannoni@cygnus.com>
2180 Stan Shebs <shebs@cygnus.com>
2181 Edith Epstein <eepstein@cygnus.com>
2182 Andres MacLeod <amacleod@cygnus.com>
2183 Satish Pai <pai@apollo.hp.com>
2184
2185 * HP aCC demangling support.
2186 * cplus-dem.c
2187 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2188 demangling correctly when -edg specified; set the demangling style
2189 when user specifies 'edg'. Set strip_underscore to
2190 prepends_underscore, if not HPUXHPPA. Set
2191 current_demangling_style to hp_demangling if HPUXHPPA. Set
2192 current demangling style correctly if the switch is hp. Read
2193 label correctly also in the HP style case.
70d5ccef 2194 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2195 function.
70d5ccef 2196 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2197 style for this case is the same as ARM.
70d5ccef
DT
2198 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2199 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2200 demangle_arm_pt.); check and set value of temp_start field in
2201 multiple places. Also, when ceching for end of template args,
2202 check to see if at end of static member of template class.
70d5ccef 2203 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2204 include template args in string defining class.
70d5ccef
DT
2205 (demangle_class_name): use demangel_arm_hp_template.
2206 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2207 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2208 Handle EDG_DEMANGLING style. Handle constructor and destructor
2209 ops for HP style.
70d5ccef 2210 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2211 styles. global destructor and constructor for HP style are same
2212 as for ARM style. Same for local variables.
70d5ccef
DT
2213 (demangle_qualified): handle EDG_DEMANGLING style.
2214 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2215 cases '1' - '9' : initialize the temp_start field to -1 and handle
2216 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2217 and AUTO_DEMANGLING styles. If expecting a function and managed
2218 to demangle the funct args, then handle the LUCID_DEMANGLING,
2219 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2220 class name after "Lnnn_ in HP style case. HP style too needs to
2221 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2222 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2223 value param for HP/aCC.
70d5ccef 2224 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2225 literal parameter for HP aCC.
70d5ccef
DT
2226 (recursively_demangle): new function
2227 (snarf_numeric_literal): new function.
2228 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2229 to message.
70d5ccef 2230
8d525fa8
CF
2231Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2232
2233 * pexecute.c: Remove obsolete ifdefed cygwin code.
2234
9b1a92d8
KG
2235Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2236
2237 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2238 * cplus-dem.c: Likewise. Conform to libiberty.h.
2239 * pexecute.c: Likewise.
2240 * splay-tree.c: Likewise.
2241
c85c3232
MS
22421998-11-25 Mike Stump <mrs@wrs.com>
2243
2244 * Makefile.in (splay-tree.o): Add config.h dependency.
2245
35a6cd99
KG
2246Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2247
2248 * configure.in: Use AC_PREREQ(2.12.1).
2249
6e6e34b7
BK
22501998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2251
5194cf08 2252 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2253
59b67c11
JL
2254Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2255
2256 * mpw.c (mpw_access): Add missing parens.
2257
a6458d1d
KG
2258Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2259
2260 * configure.in: Call AC_HEADER_SYS_WAIT.
2261
2262 * pexecute.c: Include sys/wait.h when !IN_GCC.
2263
3510075c
JL
2264Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2265
2266 * pexecute.c: revert back to checking old Cygwin
2267 preprocessor symbol until some time has passed.
2268
2269Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2270
2271 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2272 since it will now support similar constructs.
2273
a9acf741
KG
2274Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2275
2276 * configure.in: Check for calloc.
2277
2278 * calloc.c: New file.
2279
2280 * xmalloc.c (xcalloc): New function.
2281
a49fb37a
AM
2282Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2283
2284 *cplus-dem.c (demangle_prefix): Use the last "__"
2285 in the mangled name when looking for the signature. This allows
2286 template names to begin with "__".
2287
0e714131
MM
22881998-11-08 Mark Mitchell <mark@markmitchell.com>
2289
ec2288ff
MM
2290 * cplus-dem.c (type_kind_t): Add tk_reference.
2291 (demangle_template_value_parm): Handle it.
2292 (do_type): Use it for references, instead of tk_pointer.
2293
0e714131
MM
2294 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2295 not internal_cplus_demangle.
2296
2931b6d4
KG
2297Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2298
2299 * choose-temp.c: Don't include gansidecl.h.
2300 * mkstemp.c: Likewise.
2301 * pexecute.c: Likewise.
2302
dd8f3ed5
GN
2303Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2304
5194cf08
ZW
2305 * configure.in: detect cygwin* instead of cygwin32*
2306 * configure: regenerate
dd8f3ed5 2307
c5f7c445
KG
2308Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2309
2310 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2311 whether to include config.h. Possibly include unistd.h in the
2312 !IN_GCC case. Define VFORK_STRING as a printable function call
2313 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2314 defined, include vfork.h. If VMS is defined, define vfork()
2315 appropriately. Remove vfork check on USG, we're using autoconf.
2316 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2317 locally what string to use.
c5f7c445 2318
ad3ef78e
MM
23191998-10-26 Mark Mitchell <mark@markmitchell.com>
2320
2321 * splay-tree.c: Tweak include directives to make sure declarations of
2322 xmalloc and free are available.
2323
224301c1
MM
23241998-10-25 Mark Mitchell <mark@markmitchell.com>
2325
2326 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2327 anonymous namespaces.
38beb75c 2328
d9db46fd
MM
23291998-10-23 Mark Mitchell <mark@markmitchell.com>
2330
2331 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2332 with type_quals.
2333 (TYPE_UNQUALIFIED): New macro.
2334 (TYPE_QUAL_CONST): Likewise.
2335 (TYPE_QUAL_VOLATILE): Likewise.
2336 (TYPE_QUAL_RESTRICT): Likewise.
2337 (code_for_qualifier): New function.
2338 (qualifier_string): Likewise.
2339 (demangle_qualifier): Likewise.
2340 (internal_cplus_demangle): Use them.
2341 (demangle_signature): Likewise.
2342 (demangle_template_value_parm): Likewise.
2343 (do_type): Likewise.
2344 (demangle_fund_type)): Likewise.
224301c1 2345
b056ad1c
KG
2346Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2347
2348 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2349 to match prototype.
2350
ed87f9c8
MM
23511998-10-21 Mark Mitchell <mark@markmitchell.com>
2352
2353 * splay-tree.c: New file.
2354 * Makefile.in (CFILES): Add it.
2355 (REQUIRED_OFILES): Likewise.
2356 (splay-tree.o): Add dependencies.
2357
e0c13971
AS
2358Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2359
2360 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2361 range of 'K' index.
2362
91e0f659
KG
2363Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2364
2365 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2366
2367 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2368 `unsigned char'.
2369 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2370 comparing against one.
2371 (cplus_mangle_opname): Likewise.
2372 (demangle_integral_value): Cast argument of ctype macro to
2373 `unsigned char'.
2374 (demangle_template_value_parm): Likewise.
2375 (demangle_template): Initialize variable `bindex'. Cast the
2376 result of `strlen' to (int) when comparing against one. Remove
2377 unused variable `start_of_value_parm'.
2378 (demangle_class_name): Cast the result of `strlen' to (int) when
2379 comparing against one.
2380 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2381 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2382 when comparing against one.
2383 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2384 (get_count): Likewise.
2385 (do_type): Likewise. Cast the result of `strlen' to (int) when
2386 comparing against one.
2387 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2388 (demangle_function_name): Cast the result of `strlen' to (int)
2389 when comparing against one.
2390
2391 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2392 comparing against one.
2393
73aeb2ff
JL
2394Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2395
5194cf08
ZW
2396 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2397 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2398 * config.in, configure: Rebuilt.
ae76f1be 2399
73aeb2ff
JL
2400 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2401 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2402 * config.in, configure: Rebuilt.
2403
dd8f3ed5
GN
2404Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2405
5194cf08 2406 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2407
f77d8413
MT
2408Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2409
2410 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2411
ca6b370d
JL
2412Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2413
2414 * Merge egcs & devo libiberty.
2415
ab4856b1
ML
2416