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