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