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