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