Fix changelog.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
ff773b85
DD
12003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * argv.c: Fix comments.
4 * calloc.c: Don't unnecessarily include "libiberty.h".
5 (bzero): Add prototype.
6 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
7 * getcwd.c (getcwd): Use standard definition to avoid conflicts
8 with system headers.
9 * hashtab.c (htab_traverse): Delete unused variables.
10 * rename.c: Include "ansidecl.h".
11 (rename): Use standard definition to avoid conflicts with system
12 headers.
13 * strsignal.c: Rely on ANSI_PROTOTYPES.
14 * strstr.c: Check GNUC >= 2, not GNUC == 2.
15 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
16 * vprintf.c: Include "ansidecl.h" earlier, rely on
17 ANSI_PROTOTYPES.
18 * vsprintf.c: Include "ansidecl.h" earlier, rely on
19 ANSI_PROTOTYPES and possibly include <stdarg.h>.
20
21 * Makefile.in: Regenerate dependencies.
22
bb325820
DD
232003-04-15 DJ Delorie <dj@redhat.com>
24
25 * maint-tool (deps): Scan for headers in $srcdir also.
26
258a4893
DD
272003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28
29 PR target/10338
30 PR bootstrap/10198
31 PR bootstrap/10140
32 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
33 __mempcpy.
34 * regex.c (regerror): Likewise.
35
ff773b85
DD
362003-04-14 Roger Sayle <roger@eyesopen.com>
37
38 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
39 * memchr.c: Likewise.
40 * strcasecmp.c: Likewise.
41 * strncasecmp.c: Likewise.
42 * strncmp.c: Likewise.
43 * xatexit.c: Likewise.
44 * xmalloc.c: Likewise.
45
46 * copysign.c: Use traditional function declaration instead of DEFUN.
47 * sigsetmask.c: Likewise.
48
49 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
50 * memset.c: Likewise.
51
52 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
53 * memmove.c: Likewise.
54
eec539c7
DD
552003-04-14 Roger Sayle <roger@eyesopen.com>
56
57 * strdup.c (strdup): Tweak implementation to use memcpy.
58
daf7c4ad
DD
592003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
60
61 * configure.in (HAVE_UINTPTR_T): Always define.
62 * configure: Regenerated.
63
aa072e59
AO
642003-03-23 Alexandre Oliva <aoliva@redhat.com>
65
66 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
67 instead of $$CC alone.
68 (install_to_tooldir): Use it.
69
f77ed96c
DD
702003-17-03 Jan Hubicka <jh@suse.cz>
71
72 * hashtab.c (htab_traverse_noresize): Break out from ...
73 * hashtab.c (htab_traverse): ... here.
74
2336e177
DD
752003-12-03 Jan Hubicka <jh@suse.cz>
76
77 * hashtab.c (htab_expand): Fix warning.
78
79 * hashtab.c (htab_expand): Compute the size of hashtable based
80 on the number of elements actually used.
81 (htab_traverse): Call htab_expand when table is too empty.
82
d8cbbf95
DD
832003-03-11 Carlo Wood <carlo@gnu.org>
84
85 * cplus-dem.c (demangle_integral_value): Correction to reflect
86 patch of 2002-01-10 in order to also make negative multi-digits
87 without leading underscore work.
88
a01fefeb
DD
892003-03-03 Mark Mitchell <mark@codesourcery.com>
90
91 * cplus-dem.c: Add license exception to copyright notice.
92
638ceb1a
DD
932003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
94
95 * physmem.c: Formatting changes from upstream.
96
ef803806
DD
972003-02-24 Danny Smith <dannysmith@users.source.forge.net>
98
99 * physmem.c (physmem_total): Add _WIN32 support.
100 (physmem_available): Likewise.
101
181fa229
DD
1022003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
103
104 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
105 GSI_PHYSMEM.
106 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
107
cc529274
DD
1082003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
109
110 * configure.in: Check for sys/systemcfg.h and
111 _system_configuration.
112 * physmem.c: Add support for AIX. Tweek formatting as per
113 upstream coreutils beta.
114
1152003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
116 Richard Earnshaw <rearnsha@arm.com>
117 Geoffrey Keating <geoffk@apple.com>
ff773b85 118
cc529274
DD
119 * configure.in: Check for sys/sysctl.h and sysctl.
120 * physmem.c: Add support for *bsd and darwin.
121 * Makefile.in: Generate depedency for physmem.o.
122
192cbe66
DD
1232003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
124
125 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
126 Tru64 UNIX.
127 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
128 Tru64 UNIX.
129
130 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
131 machine/hal_sysinfo.h, sys/table.h.
132 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
133 * configure, config.in: Regenerate.
134
ff773b85
DD
1352003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
136
137 * configure.in: Check for sys/sysmp.h and sysmp.
138 * physmem.c: Pull upstream copy, add support for irix6.
139
140 * config.in, configure: Regenerated.
141
900d2082
DD
1422003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
143
144 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
145 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
146 pstat_getdynamic.
ff773b85 147
4938384a
DD
1482003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
149
150 * Makefile.in (CFILES): Add physmem.c.
151 (REQUIRED_OFILES): Add physmem.o.
152 * configure.in: Check for sys/pstat.h.
153 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
154 * physmem.c: New file, copied from textutils.
155
156 * config.in, configure: Regenerated.
157
ba61a412
DJ
1582003-02-20 Daniel Jacobowitz <drow@mvista.com>
159
160 * Makefile.in (CFILES): Add lrealpath.c.
161 (REQUIRED_OFILES): Add lrealpath.o.
162 (lrealpath.o): Add rule.
163 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
164 * configure.in: Add realpath and canonicalize_file_name to
165 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
166 for canonicalize_file_name.
167 * lrealpath.c: New file.
168 * make-relative-prefix.c: Update documentation.
169 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
170 * config.in: Regenerated.
171 * configure: Regenerated.
172 * functions.texi: Regenerated.
173
25dfe0ac
DD
1742003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
175
176 * cplus_dem.c: Fix typo: intializes -> initializes.
177
8b90eef4
AO
1782003-02-20 Alexandre Oliva <aoliva@redhat.com>
179
180 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
181 config.status.
182 * configure: Rebuilt.
183
fcd7c7c9
DD
1842003-02-13 Daniel Jacobowitz <drow@mvista.com>
185
186 Fix PR c++/7612.
187 * cplus-dem.c (demangle_signature): Call string_delete.
188 Remove extra string_init.
189 (demangle_arm_hp_template): Call string_delete instead of
190 string_clear. Add missing string_delete call.
191 (demangle_qualified): Add missing string_delete call.
192 (do_type): Remove unused variable btype. Add missing string_delete
193 call. Call string_delete instead of string_clear.
194 (demangle_fund_type): Move variable btype inside of the switch
195 statement. Add missing string_delete call.
196 (do_arg): Call string_delete instead of string_clear. Remove extra
197 string_init.
198 (demangle_nested_args): Free work->previous_argument.
199
073c427b
DD
2002003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
201
202 * acconfig.h: New file. Add uintptr_t.
203 * config.in: Regenerated.
204
f8bd3000
DD
2052003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
206
207 * libiberty.texi: Update to GFDL 1.2.
208
85b9a938
DD
2092003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
210
211 * Makefile.in (libiberty_topdir): New subst.
212 (mkinstalldirs): Redefine in terms of the above.
213 * configure.in: AC_SUBST it.
214 * configure: Regenerate.
215
578460f2
AO
2162003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
217
218 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
219 (info-subdir, install-info-subdir, clean-info-subdir)
220 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
221 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
222 Pass $(FLAGS_TO_PASS).
223
7f285245
AO
2242003-01-27 Alexandre Oliva <aoliva@redhat.com>
225
226 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
227 /`$$CC -print-multi-os-directory`.
228
5f9624e3
DJ
2292003-01-26 Daniel Jacobowitz <drow@mvista.com>
230
231 * hashtab.c (htab_create_alloc_ex): New function.
232 (hatab_set_functions_ex): New function.
233 (htab_delete, htab_expand): Support alternate allocation functions.
234
9c2259b8
DD
2352003-01-24 Christopher Faylor <cgf@redhat.com>
236
237 * configure.in: Remove special pex-cygwin consideration.
238 * configure: Regenerate.
239 * pex-cygwin.c: Remove.
240 * Makefile.in: Remove pex-cygwin.[co] lines.
241
5a17353c
DD
2422003-01-24 Zack Weinberg <zack@codesourcery.com>
243
244 * Makefile.in (CFILES): Add pex-*.c.
245 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
246 (CONFIGURED_OFILES): Add pex-*.o.
247 (TEXIFILES): Add pexecute.txh.
248 (pexecute.o): Delete rule.
249 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
250 pex-unix.o, pex-win32.o): New rules.
251 * configure.in: Change AC_INIT argument to xmalloc.c.
252 Compute appropriate pexecute implementation and substitute it
253 as @pexecute@.
254
255 * pexecute.c: Split up into...
256 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
257 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
258 new files.
259
260 * functions.texi: Regenerate.
261 * configure: Regenerate.
262
eed2b28c
DD
2632003-01-20 Josef Zlomek <zlomekj@suse.cz>
264
265 * hashtab.c (htab_expand): Fix allocation of new entries.
266
27a39a5f
DD
2672003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
268
269 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
270
271 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
272 mkinstalldirs command.
273
b51c1553
DD
2742002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
275
276 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
277 Define for hosts with HOST_EXECUTABLE_SUFFIX.
278
756954c3
DD
2792002-11-24 Nick Clifton <nickc@redhat.com>
280
281 * make-relative-prefix.c (make_relative_prefix): Ensure return
282 string is empty before using strcat to construct it.
283
2a80c0a4
DD
2842002-11-22 Daniel Jacobowitz <drow@mvista.com>
285
286 * Makefile.in: Add make-relative-prefix.c.
287 * make-relative-prefix.c: New file.
288 * functions.texi: Rebuilt.
289
768b20d8
JJ
2902002-11-16 Jakub Jelinek <jakub@redhat.com>
291
292 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
293 used with arguments in traditional C' warnings.
294
f52d1d64
JJ
2952002-10-16 Jakub Jelinek <jakub@redhat.com>
296
297 * config.table: Use mh-s390pic for s390x too.
298
0d3deb8d
DD
2992002-10-06 Andreas Jaeger <aj@suse.de>
300
301 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
302 variable and of strict-aliasing warning.
303 (grow_vect): Use char as first parameter.
304
1b67de92
DD
3052002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
306
307 * Makefile.in (all): Fix multilib parallel build.
308
585cc78f
DD
3092002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
310
311 * cp-demangle.c (demangling_new): Cast 0 to enum.
312 (demangle_char): Cast return of strdup to char *.
313 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
314 (is_gnu_v3_mangled_dtor): Likewise.
315 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
316 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
317 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
318 * md5.c (md5_process_bytes): Cast results back to const void *.
319 (md5_process_block): Add cast to const md5_uint32 *.
320 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
321 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
322 unsigned short.
323 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
324 to void *.
325 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
326
e21b0cc1
NC
3272002-09-19 Nick Clifton <nickc@redhat.com>
328
329 * README: Update email addresses for bugs and patches.
330
a54ba43f
DD
3312002-09-10 Mike Stump <mrs@apple.com>
332
333 * splay-tree.c (splay_tree_successor): Fix comments.
334
3352002-09-11 Zack Weinberg <zack@codesourcery.com>
336
337 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
338 * testsuite/Makefile.in: Adjust for test-demangle.
339 * testsuite/regress-demangle: Deleted.
340 * testsuite/test-demangle.c: New file.
341 * testsuite/demangle-expected: Change \$ to $ throughout, now that
342 this file is not being read by a shell script.
343
01cea699
DD
3442002-09-05 Roger Sayle <roger@eyesopen.com>
345
346 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
347
a2832523
DD
3482002-08-07 DJ Delorie <dj@redhat.com>
349
350 * regex.c (re_error_msgid): Just use a simple array of strings.
351 (re_compile_pattern): Compensate.
352 (re_comp): Likewise.
353 (re_comp): Likewise.
354 (regerror): Likewise.
355
1e3f0be0
DD
3562002-07-29 Neil Booth <neil@daikokuya.co.uk>
357
358 * cplus-dem.c (PREPEND_BLANK): Remove.
359
b851d07b
DD
3602002-07-10 Jason Merrill <jason@redhat.com>
361
362 * cp-demangle.c (demangle_identifier): Support extended Unicode
363 characters.
364
2a9dffbf
DD
3652002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
366
367 * cp-demangle.c (demangle_v3_with_details): Wrap in
368 !defined IN_GLIBCPP_V3.
369
793011ca
DD
3702002-07-01 Mark Mitchell <mark@codesourcery.com>
371
372 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
373 Set it for the "st" operator.
374 (demangle_expression): Handle expressions with types as arguments.
375
b39b76b8
DD
3762002-06-30 Douglas Rupp <rupp@gnat.com>
377
378 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
379 * Makefile.in (OUTPUT_OPTION): Use.
380
4748c6d8
DD
3812002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
382
383 * Makefile.in (install_to_libdir): Add $(DESTDIR).
384 (install_to_tooldir): Likewise.
385
f9c3326a
DD
3862002-06-17 Douglas Rupp <rupp@gnat.com>
387
388 * lbasename.c: Add 2002 to copyright.
389 (IS_DIR_SEPARATOR): Remove VMS junk.
390
18893690
DD
3912002-06-05 Geoffrey Keating <geoffk@redhat.com>
392
393 * hashtab.c (htab_create): New stub function for backward
394 compatibility.
395 (htab_try_create): Likewise.
396
3972002-06-03 Geoffrey Keating <geoffk@redhat.com>
398
399 * hashtab.c (htab_create): Delete.
400 (htab_try_create): Delete.
401 (htab_create_alloc): New.
402 (htab_delete): Support user-specified memory allocation.
403 (htab_expand): Likewise.
404
4052002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
406
407 * configure.in: Fix typo in the code checking for sys_errlist.
408 * configure: Regenerated.
409
9296c8b2
DD
4102002-05-13 Andreas Schwab <schwab@suse.de>
411
412 * config.table: Use mh-x86pic also for x86-64.
413
52d98c2d
DD
4142002-05-08 Alexandre Oliva <aoliva@redhat.com>
415
416 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
417 script entry, and set LD to it when configuring multilibs.
418 * configure: Rebuilt.
419
cafa3917
DD
4202002-05-07 Mark Mitchell <mark@codesourcery.com>
421
422 * configure.in (AC_TYPE_PID_T): Use it.
423 * configure: Regenerated.
424 * getruntime.c: Include <sys/types.h>.
425 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
426
b1c933fc
RH
4272002-04-09 Richard Henderson <rth@redhat.com>
428
429 * hashtab.c (higher_prime_number): Use 7 as minimum.
430 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
431 (htab_find_slot_with_hash): Likewise.
432
0c4460bb
DD
4332002-04-01 Phil Edwards <pme@gcc.gnu.org>
434
435 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
436 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
437 not compile if IN_GLIBCPP_V3 defined.
438 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
439
f2160d2b
DD
4402002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
441
3ebf1f59 442 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
443 if it is NULL.
444
7dd4d42a
DD
4452002-03-27 DJ Delorie <dj@redhat.com>
446
447 * hex.c: Add documentation.
448 (_hex_value): Provide non-ASCII empty table.
449 (hex_init): Initialize the non-ASCII table.
450 * functions.texi: Regenerate.
451
38e57a35
DD
4522002-03-27 Mark Mitchell <mark@codesourcery.com>
453
454 * dyn-string.c: Add libgcc exception to copyright notice.
455
cfed0715
DD
4562002-03-26 H.J. Lu (hjl@gnu.org)
457
458 * config.table: Support --with-build-subdir.
459 * configure.in: Likewise.
460 * configure: Rebuild.
461
1504972f
DD
4622002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
463
464 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
465 seen.
466
35efcd67
DD
4672002-03-12 Mark Mitchell <mark@codesourcery.com>
468
469 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
470 notice.
471
dabc64ea
DD
4722002-03-11 Douglas B Rupp <rupp@gnat.com>
473
474 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
475
3ddbd84c
JB
4762002-03-06 Jim Blandy <jimb@redhat.com>
477
478 * splay-tree.c (splay_tree_xmalloc_allocate,
479 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
480 prototyped definitions. Mark `data' arguments as unused.
481
efdab807
AC
4822002-03-06 Andrew Cagney <ac131313@redhat.com>
483
484 * floatformat.c (floatformat_arm_ext_big): Delete definition.
485
50d4562d
DD
4862002-03-04 Phil Edwards <pme@gcc.gnu.org>
487
488 * configure.in: Add --enable-install-libiberty option.
489 * Makefile.in (INSTALLED_HEADERS): New variable.
490 (install_to_libdir): Possibly also copy headers.
491 * configure: Regenerated.
492
4932002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
494
495 * xmalloc.c (xmalloc_fail): Clarify error message further.
496
6e9980f5
DD
4972002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
498
499 * xmalloc.c (xmalloc_fail): Clarify error message.
500
18893690 5012002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
502
503 * splay-tree.c (splay_tree_xmalloc_allocate,
504 splay_tree_xmalloc_deallocate): New functions.
505 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
506 above functions and a dummy data pointer.
507 (splay_tree_new_with_allocator): New function.
508 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
509 splay_tree_remove): Use the splay tree's allocation and
510 deallocation functions.
511
59ea9fe7
DD
5122002-02-19 Scott Snyder <snyder@fnal.gov>
513
514 * testsuite/demangle-expected: Add test case for infinite loop in
515 demangler.
516 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
517 if do_type() doesn't make any progress --- prevents an infinite
518 loop.
519
6f848550
DD
5202002-02-18 Carlo Wood <carlo@gnu.org>
521
522 PR c++/5390
523 * cplus-dem.c (demangle_integral_value): Accept multi-digit
524 numbers that do not start with an underscore; This is needed
525 for integer template parameters. This doesn't break anything
526 because multi-digit numbers are never followed by a digit.
527 * testsuite/demangle-expected: Corrected all mangled test
528 cases with multi-digit template parameters: g++ 2.95.x does
529 not generate underscores around these parameters.
530
44354ae1
DD
5312002-02-05 Jason Merrill <jason@redhat.com>
532
533 * cplus-dem.c (flags): Add DMGL_VERBOSE
534 (cplus_demangle_v3_p): Remove.
535 (demangle_it): Add DMGL_TYPES to passed flags.
536 * cp-demangle.c (cplus_demangle_v3_all): Remove.
537 (cplus_demangle_v3_type): Remove.
538 (cplus_demangle_v3): Add options parm.
539
42da15d6
DD
5402002-02-02 H.J. Lu (hjl@gnu.org)
541
542 * cp-demangle.c (cp_demangle_type): Do not protect with
543 IN_LIBGCC2.
544 (cplus_demangle_v3_all): New.
545 (cplus_demangle_v3): Call cplus_demangle_v3_all.
546 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
547
548 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
549 Initialized to cplus_demangle_v3.
550 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
551 of cplus_demangle_v3.
552 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
553 command line symbol.
554
555 * testsuite/regress-demangle: Pass the mangled name at the
556 command line.
557
b117c158
DD
5582002-02-01 H.J. Lu <hjl@gnu.org>
559
560 * cp-demangle.c (cp_demangle_type): Call demangling_new with
561 DMGL_GNU_V3.
562
c78d91b1
DD
5632002-01-31 Phil Edwards <pme@gcc.gnu.org>
564
565 * cp-demangle.c: Revert yesterday's change.
566
bef8b55d
DD
5672002-01-31 Adam Megacz <adam@xwt.org>
568
569 * gcc/libiberty/configure.in: Treat mingw the same as cywin
570 wrt HAVE_SYS_ERRLIST.
571
2c955b8b
DD
5722002-01-30 Phil Edwards <pme@gcc.gnu.org>
573
574 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
575 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
576 cp_demangle_type.
577 * testsuite/demangle-expected: New gnu-v3 test.
578
58b1717a
RH
5792002-01-22 Momchil Velikov <velco@fadata.bg>
580
581 * configure.in (variable detection): Use arrays of unspecified
582 size instead of plain integers.
583
cc096b71
DD
5842002-01-18 DJ Delorie <dj@redhat.com>
585
586 * Makefile.in (TESTLIB): New. This library is for future
587 testsuites.
588 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
589 break down by letter.
590 (REQUIRED_OFILES): List long-to-compile files first.
591 (maint-deps): New, target for updating dependencies.
592 (dependencies): Update.
593 * maint-tool: Add dependency-generating option.
594 * configure.in: Check for _doprnt even if we're not providing it.
595 * configure: Regenerate.
596
597 * _doprnt.c: Modifications to allow compiling on any platform.
598 * copysign.c: Likewise.
599 * putenv.c: Likewise.
600 * setenv.c: Likewise.
601 * vsprintf.c: Likewise.
602
6032002-01-15 Douglas B Rupp <rupp@gnat.com>
604
605 * mkstemps.c (mkstemps): On VMS, open temp file with option
606 that causes it to be deleted when closed.
607
20d54542
DD
6082002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
609
c23795e2
DD
610 * cp-demangle.c (long_options): Const-ify.
611 * cplus-dem.c (long_options): Likewise.
612
20d54542
DD
613 * cplus-dem.c (mystrstr): Delete. All callers changed to use
614 strstr instead.
615
f348a7b1
DD
6162001-12-31 Ira Ruben <ira@apple.com>
617
618 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
619 * configure: Regenerated.
620
d86cd745
DD
6212001-12-24 Douglas B. Rupp <rupp@gnat.com>
622
623 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
624 * configure: Regenerated.
625
ae533646
DD
6262001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
627
628 PR other/2719
629 * cplus-dem.c (consume_count): Treat negative count as an error.
630 * testsuite/demangle-expected: Added testcase.
631
c0eb281b
DD
632Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
633
634 * configure.in: Hardcode that vfork works on VMS host.
635 * configure: Regenerated.
636
2da4c07f
RH
6372001-12-06 Richard Henderson <rth@redhat.com>
638
639 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
640 (cplus_demangle): Support no_demangling.
641
24acd898
DD
6422001-11-27 Zack Weinberg <zack@codesourcery.com>
643
644 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
645 in libiberty context. Fix typo in leading comment.
646 * configure.in: Fix various AC_DEFINEs so autoheader works.
647 If any of vprintf, vsprintf, vfprintf is missing from libc,
648 then AC_REPLACE_FUNCS(_doprnt).
649
fec50157 6502001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 651 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
652
653 * Makefile.in (stamp-h): Depend on Makefile for proper
654 serialization.
655 (*-subdir): Depend on config.h for proper serialization.
656
5527febf
DD
6572001-11-26 DJ Delorie <dj@redhat.com>
658
659 * configure.in: Check for alloca.h (for regex.c and putenv.c).
660 * configure: Regenerate.
661 * config.h: Add HAVE_ALLOCA_H.
662
941d74a0
DD
6632001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
664
665 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
666 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
667 is available.
668
dc579051
DD
669Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
670
671 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
672 * configure.in (HAVE_UINTPTR_T): Test for system defining
673 uintptr_t and define HAVE_UINTPTR_T appropriately.
674 * regex.c (uintptr_t): Do not provide a definition if the
675 system provided one.
676
677 * regex.c (PREFIX): Provide an alternate definition for
678 non-ANSI/ISO compilers.
679 (ARG_PREFIX): Likewise.
680
1a78a35a
DD
6812001-11-12 Jim Meyering <meyering@lucent.com>
682
683 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
684 this code would end up calling gettext even in packages built
685 with --disable-nls.
686 * getopt.c (_): Likewise.
687 * regex.c (_): Likewise.
688
4e55c4b6
DD
6892001-11-03 Alan Modra <amodra@bigpond.net.au>
690
691 * configure.in: Cope with missing makeinfo.
692 * configure: Regenerate.
693
d311a83a
DD
6942001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
695
696 * hex.c (hex_init): Provide empty stub.
697
698 * hex.c (hex_init): Delete.
699 (_hex_value): Const-ify and initialize at compile-time.
700
3bc62f91
DD
7012001-10-19 H.J. Lu <hjl@gnu.org>
702
703 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
704 necessary.
705
5d852400
DD
7062001-10-17 DJ Delorie <dj@redhat.com>
707
708 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
709 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 710 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
711 Improve manual formatting.
712 * functions.texi: Regenerate.
713
ba19b94f
DD
7142001-10-15 DJ Delorie <dj@redhat.com>
715
716 * Makefile.in (TEXIFILES): Add fnmatch.txh.
717 (maint-undoc): New.
718 maint-tool: Add "undoc" tool.
719 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
720 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
721 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
722 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
723 documentation.
724 * fnmatch.txh: New.
725 * functions.texi: Regenerate.
726
56056af5
DD
7272001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
728
729 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
730 * strtod.c: Use "ISO C" instead of "ANSI C".
731 * functions.texi: Regenerate.
732
99b58139
DD
7332001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
734
735 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
736 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
737 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
738 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
739 spelling. Give names to function arguments in documentation. Use
740 (void) prototypes in documentation.
741 * functions.texi: Regenerate.
742
e6450fe5
DD
7432001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
744
745 * argv.c (buildargv, tests, main): Const-ify.
746 * cp-demangle.c (operator_code): Likewise.
747 * cplus-dem.c (optable, libiberty_demanglers,
748 cplus_demangle_set_style, cplus_demangle_name_to_style,
749 print_demangler_list): Likewise.
750 * hashtab.c (higher_prime_number): Likewise.
751 * strcasecmp.c (charmap): Likewise.
752 * strerror.c (error_info, strerror, main): Likewise.
753 * strncasecmp.c (charmap): Likewise.
754 * strsignal.c (signal_info): Likewise.
755
da191b5b
DD
7562001-09-29 DJ Delorie <dj@redhat.com>
757
758 * configure: Regenerate.
759
916aaa12
DD
7602001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
761
762 * concat.c: Include stdlib.h.
763
fa9f0e33
DD
7642001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
765
766 * libiberty.texi: (Top level): Add syncodeindex pg. Add
767 @dircategory and @direntry directives. Add @finalout.
768 (many nodes): Lose the next,prev,up pointers on the @nide line.
769 (Using, Supplemental Functions, Replacement Functions): Fix
770 markup.
771 (Functions): Move around, to allow makeinfo to build the manual
772 without next,prev,up pointers in thye node lines.
773 (Licenses): Fix typos.
774
775 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
776 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
777 * functions.texi: Regenerate.
778
779 * copying-lib.texi: Lose the next,prev,up pointers on the @node
780 line.
781
7822001-09-27 DJ Delorie <dj@redhat.com>
783
784 * configure.in: Don't use in-tree texinfo, because libiberty must
785 be built before it. Check for makeinfo version 4 or higher.
786 * functions.texi: Regenerate.
787
39423523
DD
7882001-09-20 DJ Delorie <dj@redhat.com>
789 Phil Edwards <pedwards@disaster.jaj.com>
790
791 * configure.in (MAKEINFO, PERL): Detect these.
792 (--enable-maintainer-mode): Add.
793 * configure: Regenerate.
794 * Makefile.in (MAKEINFO, PERL): Define.
795 (libiberty.info, libiberty.dvi, libiberty.html): New.
796 (CFILES): Add bsearch.c.
797 (CONFIGURED_OFILES): New, list of objects configure might add.
798 (maint-missing, maint-buildall): New, for maintainers only.
799 (clean, mostlyclean): Add info/dvi/html files.
800 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
801 * gather-docs: New, for maintainers.
802 * maint-tool: New, for maintainers.
803 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
804 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
805 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
806 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
807 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
808 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
809 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
810 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
811 documentation.
812
66c94e19
DD
8132001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
814
815 * concat.c (reconcat): Fix for traditional C.
816
99ee3a8f
DD
8172001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
818
819 * concat.c (reconcat): New function.
820
54c20242
DD
8212001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
822
823 * concat.c (vconcat_length, vconcat_copy, concat_length,
824 concat_copy, concat_copy2): New functions.
825 (concat): Use vconcat_length/vconcat_copy.
826
827 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
828 Define.
829
843f21be
DD
8302001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
831
832 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
833 VA_FIXEDARG & VA_CLOSE.
834
835 * vasprintf.c: Check HAVE_STRING_H when including string.h.
836 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
837 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
838
8a423cb3
DD
8392001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
840
841 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
842
dc676635
DD
8432001-08-23 Ulrich Drepper <drepper@redhat.com>
844
845 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
846
8472001-08-23 Ulrich Drepper <drepper@redhat.com>
848
849 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
850 instead of mbrtowc.
851 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
852 wcslen, and __wcscoll instead of wcscoll.
853
f080c76d
DD
8542001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
855
3ebf1f59
DD
856 * fibheap.c (fibheap_init, fibnode_init): Remove.
857 (fibheap_new, fibnode_new): Use xcalloc to allocate and
858 initialize memory.
859 (fibheap_insert): Remove check for node allocation failure.
f080c76d 860
f01b59ed
DD
8612001-08-21 Richard Henderson <rth@redhat.com>
862
863 * Makefile.in (fibheap.o): Depend on config.h.
864 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
865 functions for inlining.
866
867Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
868
869 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
870 hosting on cygwin.
871 * configure: Regenerate.
872
eb828599
AC
8732001-08-20 Andrew Cagney <ac131313@redhat.com>
874
875 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
876 HARRIS_FLOAT_FORMAT.
877 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
878 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
879 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
880 (floatformat_m88110_harris_ext): New float formats.
881
4e55c4b6
DD
8822001-08-20 Daniel Berlin <dan@cgsoftware.com>
883
884 * fibheap.c: New file. Fibonacci heap.
885
886 * Makefile.in (CFILES): Add fibheap.c.
887 (REQUIRED_OFILES): Add fibheap.o.
888 (fibheap.o): Add dependencies for fibheap.o.
889
68a41de7
DD
8902001-08-17 Christopher Faylor <cgf@cygnus.com>
891
892 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
893 * configure: Regenerate.
894
8fc34799
DD
8952001-08-16 Richard Henderson <rth@redhat.com>
896
897 * hashtab.c (htab_hash_string): New.
898
16bad250
AC
8992001-08-13 Andrew Cagney <ac131313@redhat.com>
900
901 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
902 name.
903
a9022147
DD
9042001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
905
906 * regex.c (wcs_regex_compile): Use appropriate string
907 to compare with collating element.
908 Fix the padding for the alignment.
909
8aefe91a 9102001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
911
912 * lbasename.c (lbasename): Change function definition to return a
913 const char pointer.
914
e7e9b069
DD
9152001-08-07 Jason Merrill <jason_merrill@redhat.com>
916
917 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
918 for".
919
cc5144f8
DD
9202001-08-03 Richard Henderson <rth@redhat.com>
921
922 * Makefile.in (concat.o): Depend on config.h.
923
8aefe91a
DD
9242001-07-30 Andreas Jaeger <aj@suse.de>
925
926 * concat.c: Include "config.h".
927
86710ce2
DD
9282001-07-30 Andreas Jaeger <aj@suse.de>
929
930 * regex.c: Declare wcs functions only if compiling with
931 MBS_SUPPORT.
932 Don't use #elif for traditional C.
933
9342001-07-23 Ulrich Drepper <drepper@redhat.com>
935
936 * regex.c: Revamp memory allocation for WCHAR functions to
937 not use too much stack.
938
9392001-07-30 Andreas Jaeger <aj@suse.de>
940
941 * regex.c: Declare wcs functions only if compiling with
942 MBS_SUPPORT.
943 Don't use #elif for traditional C.
944
a5d8f731
DD
9452001-07-25 Daniel Jacobowitz <drow@mvista.com>
946
947 * Makefile.in (regex.o): Add dependency on config.h.
948
6ad8a379
DD
9492001-07-18 Andreas Schwab <schwab@suse.de>
950
951 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
952 underscore character.
953
9542001-07-18 Ulrich Drepper <drepper@redhat.com>
955
956 * regex.c: Limit string length printed in debug messages to 100
957 chars.
958
9592001-07-18 Andreas Jaeger <aj@suse.de>
960
961 * regex.c: Place under LGPL version 2.1.
962
2a6ef469
DD
9632001-07-10 Jeff Johnston <jjohnstn@redhat.com>
964
965 * Makefile.in: Add support for regex code.
966 * regex.c: New file.
967
7b78baae
DD
9682001-07-05 Mark Klein <mklein@dis.com>
969
970 * Makefile.in: Add ffs.c dependency.
971 * configure.in: Add ffs.c.
972 * ffs.c: New file.
973
926150e2
DD
9742001-06-18 Richard Henderson <rth@redhat.com>
975
976 * concat.c: Include <sys/types.h>.
977
11f6f21d
DD
9782001-06-11 Loren J. Rittle <ljrittle@acm.org>
979
980 bootstrap/3106
981 * strerror.c (sys_nerr): Hide the OS header version.
982 * strsignal.c (sys_nsig): Likewise.
983
d42dae6c
DD
9842001-06-10 Richard Henderson <rth@redhat.com>
985
986 * concat.c: Include string.h. Fix int vs size_t usage.
987 Simplify the iteration loops. Use memcpy.
988
e05c6d27
DD
9892001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
990
991 * partition.c: Fix misspelling of `implementation'.
992
b50c4073
DD
9932001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
994
995 * md5.c (md5_init_ctx): Declare constants as unsigned.
996 (md5_process_block): Likewise.
997
457161bf
DD
9982001-05-07 Zack Weinberg <zackw@stanford.edu>
999
1000 * cp-demangle.c (demangle_v3_with_details,
1001 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1002 function definition.
1003 * ternary.c: Use K+R style function definitions. Use PTR, not
1004 void *. Make arguments constant where possible.
1005
e00bc6a7
DD
10062001-05-07 Mark Mitchell <mark@codesourcery.com>
1007
1008 * splay-tree.h (splay_tree_max): New function.
1009 (splay_tree_min): Likewise.
1010
400ee7e1
DB
10112001-04-15 Daniel Berlin <dan@cgsoftware.com>
1012
1013 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1014
1015 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1016
d9697354
DD
10172001-04-03 Zack Weinberg <zackw@stanford.edu>
1018
1019 * make-temp-file.c (try): Inline.
1020
a7bf099b
DD
10212001-02-28 Richard Henderson <rth@redhat.com>
1022
1023 * Makefile.in (make-temp-file.o): Depend on config.h.
1024
30a1def2
DD
10252001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1026
1027 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1028
079c672a
DD
10292001-03-23 Jakub Jelinek <jakub@redhat.com>
1030
1031 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1032 `_' not followed by a digit is invalid.
1033
a88e356a
JB
10342001-03-22 Jim Blandy <jimb@redhat.com>
1035
1036 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1037 instead of free, to free the contents as well as the string
1038 structure.
1039
1dffcc66
DD
10402001-03-21 Zack Weinberg <zackw@stanford.edu>
1041
1042 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1043 Don't default P_tmpdir to anything. Try /var/tmp before
1044 /usr/tmp.
1045
10462001-03-20 Zack Weinberg <zackw@stanford.edu>
1047
1048 * choose-temp.c: Split off make_temp_file, and the code
1049 duplicated between it and choose_temp_base, into...
1050 * make-temp-file.c: ... here; new file.
1051
1052 * Makefile.in (CFILES): Add make-temp-file.c.
1053 (REQUIRED_OFILES): Add make-temp-file.o.
1054
e61231f1
JB
10552001-03-20 Jim Blandy <jimb@redhat.com>
1056
1057 * cp-demangle.c (struct demangling_def): New fields:
1058 is_constructor and is_destructor.
1059 (demangling_new): Initialize them.
1060 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1061 or destructor.
1062 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1063 is_gnu_v3_mangled_dtor): New functions.
1064
a9cbbe6d
DD
10652001-03-20 Jason Merrill <jason@redhat.com>
1066
1067 * cplus-dem.c (main): Skip initial $.
1068
b1e51b3c
DD
10692001-03-15 Michael Meissner <meissner@redhat.com>
1070
1071 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1072 might be a signed integer under pre-ISO C systems.
1073
8aa30e60 10742001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1075 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1076
8aa30e60
DD
1077 * libiberty/lbasename.c: New file.
1078 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1079
30673bf5
DD
10802001-03-06 Zack Weinberg <zackw@stanford.edu>
1081
1082 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1083 * configure.in: Replace all alloca logic with a simple use of
1084 the above new macro.
1085 * config.table: Kill *-*-beos* entry.
1086 * config/mh-beos: Delete.
1087 * configure, config.in: Regenerate.
fa03f0a7 1088
30673bf5
DD
1089 * Makefile.in (ALLOCA, HFILES): Kill.
1090 (REQUIRED_OFILES): Add alloca.o.
1091 (alloca.o): Depend on libiberty.h.
1092 (argv.o): Don't depend on alloca-conf.h.
1093 * alloca-conf.h: Delete.
1094 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1095 blocks. Provide the C alloca unconditionally. Use PTR where
1096 appropriate. Make i00afunc static.
1097 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1098
5810f394
DD
10992001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1100
1101 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1102
a9db032a
DD
11032001-02-16 Loren J. Rittle <ljrittle@acm.org>
1104
1105 * cplus-dem.c (main): Initialize style.
fa03f0a7 1106
8aefe91a
DD
11072001-02-02 Phil Edwards <pme@sources.redhat.com>
1108
1109 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1110
bc9bf259
DD
11112001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1112
1113 Add support for Java demangling under the v3 ABI:
1114 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1115 (struct demangling_def): Add `style' field.
1116 (demangling_new): New parameter `style'. Set it in demangling_t.
1117 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1118 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1119 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1120 (main): Call cp_demangle with extra parameter.
1121 (java_demangle_v3): New function.
1122 (java_builtin_type_names): New. Table of primitive type names used
1123 for Java demangling.
1124 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1125 Java output.
1126 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1127 demangling.
1128 (long_options): Remove obsolete `java' option.
1129 (main): Remove explicit handling of `java' option. Instead, pass style
1130 parameter in cplus_demangle flags as gdb does.
1131 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1132
f6528837
DD
11332000-12-29 DJ Delorie <dj@redhat.com>
1134
1135 * fnmatch.c: Make the note about the origins of this file more
1136 accurate, at least until we can sync with glibc.
1137 * getopt.c: Ditto.
1138 * getopt1.c: Ditto.
1139 * md5.c: Ditto.
1140 * obstack.c: Ditto.
9d969b59 1141
c6da642e
DD
11422000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1143
1144 * bsearch.c: New file.
1145 * configure.in (funcs): Add bsearch.
1146 (AC_CHECK_FUNCS): Likewise.
1147 * configure, config.in: Regenerate.
1148
ae7d06ad 11492000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1150
1151 * safe-ctype.c: #include "ansidecl.h".
1152 * strtod.c: Likewise.
1153
ae7d06ad 11542000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1155
1156 * strtoul.c: Include safe-ctype.h, not ctype.h.
1157
ac424eb3
DD
11582000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1159
1160 * safe-ctype.c: New file.
1161 * Makefile.in (CFILES): Add safe-ctype.c.
1162 (REQUIRED_OFILES): Add safe-ctype.o.
1163
1164 * argv.c: Define ISBLANK and use it, not isspace.
1165 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1166 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1167 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1168 before calling TOLOWER(c)/TOUPPER(c).
1169
4415a860
DD
11702000-12-07 Mike Stump <mrs@wrs.com>
1171
1172 * Makefile.in (distclean): When cleaning, remove testsuite.
1173
849ee224
DD
11742000-12-05 Jason Merrill <jason@redhat.com>
1175
1176 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1177 name before allocating the dyn_string.
1178
ae7d06ad 11792000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1180
1181 * cp-demangle.c: s/new_abi/v3/.
1182 * cplus-dem.c: Likewise.
1183 (current_demangling_style): Now auto_demangling.
1184 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1185 (main): Use standard symbol chars for auto_demangling.
e49a569c 1186
ae7d06ad 11872000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1188
1189 * hashtab.c (higher_prime_number): Use a table, rather than a
1190 seive, to find the next prime.
ae7d06ad
NC
1191
11922000-11-22 H.J. Lu <hjl@gnu.org>
1193
1194 * cplus-dem.c (main): Handle gnat_demangling.
1195
11962000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1197
1198 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1199 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1200 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1201 argument form of AC_DEFINE in dummy definitions block. Use
1202 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1203 in dummy block. Preload cache variables instead of bypassing
1204 tests, where possible.
1205 * acconfig.h: Removed.
ae7d06ad 1206
2ea7befd
DD
1207 * xmalloc.c (xmalloc_failed): New function, does error
1208 reporting on failed allocation.
1209 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1210
f1775526
HPN
12112000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1212
1213 * cplus-dem.c (cplus_demangle): Fix formatting.
1214 (grow_vect): Ditto.
1215 (ada_demangle): Ditto.
1216 (internal_cplus_demangle): Ditto.
1217 (mop_up): Ditto.
1218
12192000-11-21 H.J. Lu <hjl@gnu.org>
1220
1221 * cplus-dem.c (main): Handle java_demangling.
1222
ae7d06ad 12232000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1224
1225 * cplus-dem.c (grow_vect): Prototype.
1226 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1227
5dd42ef4
HPN
12282000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1229
1230 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1231 parameter `option'.
1232
296731c1
DD
12332000-11-15 Kenneth Block <kenneth.block@compaq.com>
1234
8944fb9d 1235 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1236 be used in GCC.
1237
6e53a714 12382000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1239
5dd42ef4 1240 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1241 list.
1242
99a4c1bd
HPN
12432000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1244
1245 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1246 xcalloc depending on htab->return_allocation_failure. Return zero
1247 if calloc fails.
99a4c1bd
HPN
1248 (htab_create): Update comment to cover memory allocation.
1249 (htab_try_create): New.
1250 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1251 Update comment to cover this.
99a4c1bd 1252
e0f3df8f
HPN
12532000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1254
1255 * hashtab.c: Change void * to PTR where necessary.
1256 (htab_create, htab_expand): Correct formatting of comment before
1257 function.
1258
ae7d06ad 12592000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1260
1261 * cp-demangle.c (string_list_def): Add caret_position and comments.
1262 (result_caret_pos): New macro.
1263 (result_append_string): Rename to...
1264 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1265 Rename throughout.
59666b35
DD
1266 (result_append): Rename to...
1267 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1268 throughout.
59666b35
DD
1269 (result_append_char): Rename to...
1270 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1271 throughout.
59666b35
DD
1272 (result_append_space): Remove.
1273 (string_list_new): Initialize caret position.
1274 (result_add_separated_char): Use caret position.
1275 (result_get_caret): New funtion.
1276 (result_set_caret): Likewise.
1277 (result_shift_caret): Likewise.
1278 (result_previous_char_is_space): Likewise.
1279 (substitution_start): Use caret position.
1280 (substitution_add): Likewise.
1281 (demangling_new): Initialize caret position.
1282 (demangle_encoding): Use caret position.
ae7d06ad 1283 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1284 (demangle_type_ptr): Use switch statement. Handle pointers to
1285 arrays. Don't use result_append_space. Use caret position.
1286 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1287 call to demangle_array_type.
1288 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1289
ae7d06ad 12902000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1291
1292 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1293
12942000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1295
1296 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1297
12982000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1299
1300 * splay-tree.c: #include <stdio.h>.
1301
13022000-09-14 Hans-Peter Nilsson <hp@axis.com>
1303
1304 * testsuite/demangle-expected: Add two tests for anonymous
1305 namespaces.
1306 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1307
13082000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1309
1310 * splay-tree.c (splay_tree_predecessor): New function.
1311 (splay_tree_successor): Likewise.
ae7d06ad
NC
1312
13132000-09-10 Hans-Peter Nilsson <hp@axis.com>
1314
1315 * testsuite/demangle-expected: Add four tests for type_info
1316 mangling.
1317 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1318 for a non-template non-qualified type_info function or node.
1319
13202000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1321
1322 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1323
13242000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1325
1326 * md5.c: #include "ansidecl.h".
1327
13282000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1329
1330 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1331 (demangle_type): Handle substitution candidates correctly in the
1332 face of special substitutions.
ae7d06ad
NC
1333
13342000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1335
1336 * cp-demangle.c (demangle_encoding): Rename variable.
1337 (demangle_name): Rename parameter. Handle return type
1338 suppression.
1339 (demangle_nested_name): Rename parameter.
1340 (demangle_prefix): Likewise. Change return type suppression.
1341 (demangle_unqualified_name): Add parameter. Flag constructors and
1342 conversion operators.
1343 (demangle_special_name): Fix comment.
1344 (demangle_type): Rename variable.
1345 (demangle_bare_function_type): Check for missing return type and
1346 parameter.
1347 (demangle_class_enum_type): Rename parameter.
1348 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1349
13502000-08-31 DJ Delorie <dj@redhat.com>
1351
1352 * configure.in (Cygwin): special case cygwin only when we're
1353 building cygwin, not when we're hosting cygwin.
1354
13552000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1356
1357 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1358 <expression>.
ae7d06ad
NC
1359
13602000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1361
1362 * cp-demangle.c (demangle_type_ptr): Increment position past
1363 pointer and reference characters.
ae7d06ad
NC
1364
13652000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1366
1367 * cp-demangle.c (demangle_nv_offset): New function.
1368 (demangle_v_offset): Likewise.
1369 (demangle_call_offset): Likewise.
1370 (demangle_special_name): Update thunk demangling to comply with
1371 ABI changes.
ae7d06ad
NC
1372
13732000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1374
1375 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1376 (substitution_def): Remove template_parm_number.
1377 (NOT_TEMPLATE_PARM): Remove.
1378 (result_insert_string): New macro.
1379 (result_insert): Likewise.
1380 (result_insert_char): Likewise.
1381 (substitution_add): Remove last parameter. Don't store template
1382 parm number.
1383 (BFT_NO_RETURN_TYPE): Define as NULL.
1384 (demangle_encoding): Adjust call to demangle_bare_function_type.
1385 (demangle_name): Adjust substitution. Adjust call to
1386 substitution_add.
1387 (demangle_prefix): Adjust call to substitution_add.
1388 (demangle_identifier): Handle anonymous namespaces.
1389 (demangle_operator_name): Change demangling of vendor-extended
1390 operator to match ABI changes.
1391 (demangle_type_ptr): Change parameters. Make recursive. Handle
1392 substitutions here.
1393 (demangle_type): Adjust calls to demangle_template_param,
1394 substitution_add, and demangle_type_ptr. Fix substitution of
1395 templated types.
1396 (demangle_function_type): Change parameter to a pointer.
1397 (demangle_bare_function_type): Likewise. Adjust insertion point.
1398 (demangle_template_param): Remove last parameter.
1399 (demangle_expr_primary): Remove unused variable. Adjust call to
1400 demangle_template_param.
1401 (is_mangled_char): Accept `$' and `.'.
1402 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1403 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1404
14052000-08-31 Hans-Peter Nilsson <hp@axis.com>
1406
1407 * testsuite/demangle-expected: Add nine tests for
1408 underscore-after-number followed by five tests for name-signature
1409 delimiter.
1410
14112000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1412
1413 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1414
14152000-08-28 Jason Merrill <jason@redhat.com>
1416
1417 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1418 (CFILES): Add md5.c.
1419 * md5.c: New file.
1420
14212000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1422
1423 * cp-demangle.c (demangle_name): Initialize template_p in local
1424 name case. Don't re-add substitutions as candidates.
1425 (demangle_nested_name): Use <unqualified-name>.
1426 (demangle_prefix): Likewise. Don't add template names as
1427 substitution candidates twice, or re-add a substitution or the
1428 last prefix component.
1429 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1430
14312000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1432
1433 * cp-demangle.c (result_add_separated_char): Change parameter to
1434 int.
1435 (substitution_add): Don't check for duplicates. Check if
1436 previously allocated size is zero.
1437 (demangle_name): Remove duplicate check for std substitution.
1438 Clear template flag appropriately.
1439 (demangle_prefix): Remove argument to demangle_substitution.
1440 Don't check that template flag is already set.
1441 (demangle_operator_name): Add pt operator.
1442 (demangle_type): Don't treat r as built-in type. Remove argument
1443 to demangle_substitution. Fix substitution candidate mechanics.
1444 Handle <template-template-parm>s. Improve comments.
1445 (demangle_template_param): Don't handle template arg lists here.
1446 (demangle_substitution): Remove parameter.
1447 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1448
14492000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1450
1451 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1452
14532000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1454
1455 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1456 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1457 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1458
14592000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1460
1461 * cp-demangle.c (result_close_template_list): Remove function.
1462 (result_add_separated_char): New function.
1463 (result_open_template_list): New macro.
1464 (result_close_template_list): Likewise.
1465 (demangle_prefix): Don't set template_p if the
1466 prefix ends with a ctor name.
1467 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1468 (demangle_type): Check for template args after substitution.
1469 (demangle_template_args): Use result_open_template_list.
d3e85005 1470
ae7d06ad 14712000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1472
ae7d06ad 1473 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1474
ae7d06ad 14752000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1476
1477 * config/mh-openedition.h: Added -DLE370 definition.
1478
a9f34fb6
JL
14792000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1480
1481 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1482 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1483 Cast program to 'char *' in errmsg_arg assignment.
1484 (PWAIT_ERROR): Define.
1485 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1486 to DJGPP's WIF* macros.
1487
90aaccd1 14882000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1489 Jeff Law <law@cygnus.com>
90aaccd1 1490
ae7d06ad 1491 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1492
90aaccd1 1493 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1494 * rename.c: Include config.h, unistd.h
1495 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1496
6ef554e3
HPN
14972000-07-24 Hans-Peter Nilsson <hp@axis.com>
1498
1499 * cplus-dem.c (work_stuff_copy_to_from): New.
1500 (delete_non_B_K_work_stuff): New.
1501 (delete_work_stuff): New.
1502 (mop_up): Break out work_stuff partly destruction to
1503 delete_non_B_K_work_stuff.
1504 (iterate_demangle_function): New.
1505 (demangle_prefix): Call iterate_demangle_function instead of
1506 demangle_function_name. Leave handling of name-signature
1507 __-delimiters to iterate_demangle_function.
1508 (demangle_integral_value): Strip an optional
1509 following underscore cautiously. Handle negative numbers.
1510
ae7d06ad 15112000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1512
ae7d06ad 1513 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1514 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1515
ae7d06ad
NC
15162000-07-21 Alex Samuel <samuel@codesourcery.com>
1517
1518 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1519 allocating ctor mangling.
1520 (demangle_array_type): Handle empty and non-constant array length.
1521
b1233257 15222000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1523 Jeff Law <law@cygnus.com>
1524
1525 * configure.in (AC_CHECK_HEADERS): Add time.h.
1526 (AC_HEADER_TIME): Add check.
1527 * configure, config.in: Regenerate.
1528 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1529
1530 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1531 * configure, config.in: Regenerate.
1532 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1533 * strtol.c, strtoul.c: #include "config.h". Portably #include
1534 <limits.h> and/or <sys/param.h>.
1535 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1536
7d3ffcaf
JL
1537 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1538 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1539 * configure, config.in: Regenerate.
1540 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1541
b1233257
JL
1542 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1543
ae7d06ad
NC
15442000-07-21 Mike Stump <mrs@wrs.com>
1545
1546 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1547 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1548
15492000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1550
1551 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1552
1553 * setenv.c (setenv): Initialize variable `ep'.
1554
1555 * sigsetmask.c (abort): Prototype.
1556
1557 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1558 __STDC__ for stdarg.h include.
1559 (int_vasprintf): Prototype.
1560 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1561 definition. Cast `global_total_width' in comparison.
1562 (main): Prototype. Return a value.
1563
1564 * vfork.c (fork): Prototype.
1565
1566 * xexit.c: Include config.h.
1567
9adf30b2
JL
15682000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1569
1570 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1571 and print it with %u.
1572
2ed78d1b
HPN
15732000-07-17 Hans-Peter Nilsson <hp@axis.com>
1574
1575 * testsuite/regress-demangle (failed test): Show result and
1576 expected output.
1577
0473bdf7
AH
15782000-07-07 Andrew Haley <aph@cygnus.com>
1579
1580 * cplus-dem.c (main): fflush() after emitting last char before
1581 waiting for input.
1582
03d5f569
JM
15832000-06-28 Alex Samuel <samuel@codesourcery.com>
1584
1585 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1586 (demangle_name): Handle <substitution> followed by
1587 <unqualified-template-name>.
1588 (demangle_type): Follow special substitutions with
1589 <class-enum-type>
1590 (demangle_subtitution): Set template_p for special substitutions.
1591 (main): Fix typos.
ae7d06ad 1592
03d5f569
JM
15932000-06-27 Alex Samuel <samuel@codesourcery.com>
1594
1595 * cp-demangle.c (demangle_special_name): Swap base and derived
1596 class when demangling construction vtables.
1597
15982000-06-21 Alex Samuel <samuel@codesourcery.com>
1599
1600 * cp-demangle.c: Don't include ctype.h.
1601 (IS_DIGIT): New macro.
1602 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1603 instead of isdigit and isalpanum.
1604 (demangling_def): Make name and next const pointers.
1605 (STATUS_ALLOCATION_FAILED): New status code.
1606 (dyn_string_append_space): Handle failure in
1607 dyn_string_append_char.
1608 (int_to_dyn_string): Likewise. Change return value to status_t.
1609 (string_list_new): Handle failure of dyn_string_init.
1610 (result_close_template_list): Change return type to status_t.
1611 Handle failure in dyn_string_append.
1612 (result_push): Change return value to status_t. Handle failure in
1613 string_list_new. Handle failure of result_push throughout.
1614 (substitution_add): Change return value to status_t. Handle
1615 dyn_string failures. Handle failure of substitution_add
1616 throughout.
1617 (template_arg_list_new): Return NULL on allocation failure.
1618 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1619 Handle error result throughout.
1620 (result_append): Likewise.
1621 (result_append_char): Likewise.
1622 (result_append_space): Likewise.
1623 (demangling_new): Make argument a const pointer. Handle
1624 allocation failures.
1625 (demangle_template_args): Handle failure in template_arg_list_new
1626 and result_close_template_list.
1627 (demangle_discriminator): Return if int_to_dyn_string fails.
1628 (cp_demangle): Likewise.
1629 (cp_demangle_type): New function.
1630 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1631 memory allocation failure.
1632 (main): Likewise.
1633 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1634 IN_LIBGCC2.
1635 (dyn_string_init): Change return value to int. Handle
1636 RETURN_ON_ALLOCATION_FAILURE case.
1637 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1638 (dyn_string_release): Delete the dyn_string.
1639 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1640 (dyn_string_copy): Change return type to int.
1641 (dyn_string_copy_cstr): Likewise.
1642 (dyn_string_prepend): Likewise.
1643 (dyn_string_prepend_cstr): Likewise.
1644 (dyn_string_insert): Likewise.
1645 (dyn_string_insert_cstr): Likewise.
1646 (dyn_string_append): Likewise.
1647 (dyn_string_append_cstr): Likewise.
1648 (dyn_string_append_char): Likewise.
1649 (dyn_string_substring): Likewise.
ae7d06ad 1650
eb383413 16512000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1652
eb383413
L
1653 * cp-demangle.c (demangle_operator_name): Add spaces before
1654 names beginning with a letter: delete, delete[], new, new[],
1655 sizeof.
1656 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1657
eb383413
L
1658Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1659
1660 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1661
1662Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1663
1664 * cp-demangle.c (stdio.h): File included unconditionaly.
1665 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1666 * dyn-string.c (stdio.h): File included.
1667 * partition.c (partition_print): No `&' needed to take the address of
1668 a function.
1669
16702000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1671
1672 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1673
eb383413
L
1674 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1675
1676 * cp-demangle.c (demangle_char): Change parameter from char to int.
1677 (demangle_expression, demangle_expr_primary): Remove extra
1678 semi-colon in prototype.
1679
1680 * dyn-string.c (dyn_string_append_char): Change parameter from
1681 char to int.
1682
1683 * memcmp.c (memcmp): Constify.
1684
1685 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1686 __extension__.
1687
1688 * partition.c (elem_compare): Prototype. Don't cast away
1689 const-ness.
1690
1691 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1692
eb383413
L
16932000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1694
1695 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1696
1697 * cp-demangle.c: Include demangle.h.
1698 (template_arg_list_new): DeANSIfy.
1699 (cp_demangle): Make static and add prototype.
1700 (operator_code, operators): Constify.
1701 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1702
17032000-06-05 Alex Samuel <samuel@codesourcery.com>
1704
1705 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1706 unsigned char.
1707 (demangle_unqualified_name): Likewise.
1708 (demangle_number_literally): Likewise.
1709 (demangle_type): Likewise.
1710 (demangle_substitution): Likewise.
1711 (is_mangled_char): Likewise, for isalnum.
1712
17132000-06-04 Alex Samuel <samuel@codesourcery.com>
1714
1715 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1716 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1717 (cp-demangle.o): New dependency.
1718 (dyn-string.o): Likewise.
1719
1720 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1721
1722 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1723 demangler.
1724 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1725 demangling mode.
1726 (gnu_new_abi_symbol_characters): New function.
1727 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1728 file.
1729 * cp-demangle.c: New file.
ae7d06ad 1730
f03aa80d
AC
1731Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1732
1733 * floatformat.c: Add name to each floatformat field.
1734
77bfb694
JL
1735Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1736
1737 * Makefile.in (objalloc.o): Depend on config.h
1738
5c82d20a
ZW
17392000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1740
eb383413 1741 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1742 if HAVE_STRING_H.
1743 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1744 * objalloc.c: Include config.h. Include stdlib.h and don't
1745 declare malloc or free if HAVE_STDLIB_H.
1746 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1747 else declare malloc without prototype. Include string.h if
1748 HAVE_STRING_H, else declare memset without prototype. Don't
1749 include stddef.h.
1750
eb383413
L
17512000-05-23 Mike Stump <mrs@wrs.com>
1752
1753 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1754 -j3.
eb383413
L
1755
17562000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1757
1758 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1759
17602000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1761
ae7d06ad 1762 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1763 probably zero, also eliminate a warning on alpha.
1764
17652000-05-15 David Edelsohn <edelsohn@gnu.org>
1766
1767 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1768 on $(enable_shared).
1769
17702000-05-10 Jakub Jelinek <jakub@redhat.com>
1771
1772 * config.table: Use mh-sparcpic for sparc*-*-*.
1773
17742000-05-08 Nick Clifton <nickc@cygnus.com>
1775
1776 * Makefile.in (CFILES): Add strncmp.c.
1777 (NEEDED): Add strncmp.
1778
17792000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1780
eb383413
L
1781 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1782 Cast the arguments to `islower' to `unsigned char'.
1783 (print_demangler_list): Prototype.
1784
1785Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1786
1787 * sort.c (UCHAR_MAX): Provide fallback definition.
1788
17892000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1790
1791 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1792 SUBDIRS.
1793
eb383413
L
17942000-04-28 Kenneth Block <block@zk3.dec.com>
1795 Jason Merrill <jason@casey.cygnus.com>
1796
ae7d06ad
NC
1797 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1798 (cplus_demangle_set_style): New function for setting style.
1799 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1800
18012000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1802
1803 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1804
1805 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1806 (libiberty_AC_FUNC_STRNCMP): Invoke.
1807
1808 * strncmp.c: New file.
1809
1810Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1811
1812 * hashtab.c (htab_expand): Add prototype.
1813 (find_empty_slot_for_expand): Likewise.
1814
18152000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1816
1817 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1818 match prototype.
1819 (htab_expand): Cast the return value of xcalloc.
1820
18212000-04-24 Mark Mitchell <mark@codesourcery.com>
1822
1823 * hashtab.c (hash_pointer): New function.
1824 (eq_pointer): Likewise.
1825 (htab_hash_pointer): New variable.
1826 (htab_eq_pointer): Likewise.
1827
18282000-04-23 Mark Mitchell <mark@codesourcery.com>
1829
1830 * sort.c (sort_pointers): Fix endianness bugs.
1831
1832 * sort.c: New file.
1833 * Makefile.in (CFILES): Add sort.c
1834 (REQUIRED_OFILES): Add sort.o.
1835 (sort.o): New target.
1836
19be4303
JL
18372000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1838
1839 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1840 4.3BSD systems.
1841
eb383413
L
1842Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1843
1844 * hashtab.c: Various minor cleanups.
1845 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1846 (htab_find_slot): Likewise.
1847
18482000-04-16 Dave Pitts <dpitts@cozx.com>
1849
1850 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1851
afe36a78
RH
18522000-04-05 Richard Henderson <rth@cygnus.com>
1853
1854 * splay-tree.c (splay_tree_remove): New.
1855
eb383413
L
18562000-03-30 Mark Mitchell <mark@codesourcery.com>
1857
1858 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1859 codes.
1860 (htab_find_with_hash): Likewise.
1861 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1862
eb383413
L
18632000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1864
1865 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1866 unless it will be used. Rearrange loop for better
1867 optimization.
1868 (higher_prime_number): Add static prototype.
1869
b4fe2683
JM
1870Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1871
1872 * Makefile.in (partition.o): Depend on config.h
1873
18742000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1875
1876 * hashtab.c (find_empty_slot_for_expand): New function.
1877 (htab_expand): Use it instead of htab_find_slot.
1878 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1879 argument HASH.
1880 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1881 (htab_find): New wrapper function.
1882 (htab_find_slot): Likewise.
1883 (htab_traverse): Pass slot, not entry, to called function.
1884
18852000-03-09 Alex Samuel <samuel@codesourcery.com>
1886
1887 * Makefile.in (CFILES): Add partition.c.
1888 (REQUIRED_OFILES): Add partition.o.
1889 (partition.o): New rule.
1890 * partition.c: New file.
ae7d06ad 1891
b4fe2683
JM
18922000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1893
1894 * hashtab.c (htab_create): Set del_f.
1895 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1896 Use it.
1897
18982000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1899
1900 * hashtab.c: Remove debugging variables (all_searches,
1901 all_collisions, all_expansions). Delete
1902 all_hash_table_collisions.
1903 (create_hash_table, delete_hash_table, empty_hash_table,
1904 find_hash_table_entry, remove_element_from_hash_table_entry,
1905 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1906 hash_table_elements_number, hash_table_collisions): Rename to:
1907 htab_create, htab_delete, htab_empty, htab_find_slot,
1908 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1909 htab_elements, htab_collisions.
1910 (htab_find): New function, handles common case where you don't
1911 plan to add or delete an entry.
1912 (htab_expand): Don't create a whole new table, just a new
1913 entry vector.
1914 (htab_find_slot): Simplify logic.
1915
08372f14
ILT
19161999-08-03 Ian Lance Taylor <ian@zembu.com>
1917
1918 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1919 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1920
1921 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1922 $(TARGETLIB)n so it works on MSDOS.
1923 (install_to_tooldir): Likewise.
1924
9c8ac5a9
ILT
19251999-07-21 Ian Lance Taylor <ian@zembu.com>
1926
1927 From Mark Elbrecht:
1928 * makefile.dos: Remove; obsolete.
8f36e47c 1929 * configure.bat: Remove; obsolete.
9c8ac5a9 1930
0c0a36a4
ILT
19311999-07-11 Ian Lance Taylor <ian@zembu.com>
1932
1933 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1934 warning.
1935
19362000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1937
1938 * pexecute.c: Conditionally include string.h.
b4fe2683 1939 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1940
19412000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1942
1943 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1944 we're using gcc.
1945
1946 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1947
19481999-12-27 Geoff Keating <geoffk@cygnus.com>
1949
1950 * vasprintf.c (int_vasprintf): Don't re-read the format character
1951 as this mishandles strings like '%%s'.
1952
19531999-12-05 Mark Mitchell <mark@codesourcery.com>
1954
1955 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1956 rather than struct splay_tree_node.
1957 (splay_tree_insert): Use struct splay_tree_s rather than struct
1958 splay_tree.
1959
1960Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1961
1962 * hashtab.c (sys/types.h): File included.
1963
19641999-11-22 Jason Merrill <jason@casey.cygnus.com>
1965
1966 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1967 BSD license, pursuant with
1968
1969 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1970
1971Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1972
1973 * hashtab.c: Include stdio.h.
1974
1975Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1976
1977 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1978
1979Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1980
1981 * xstrdup (sys/types.h): Include this file.
1982
19831999-10-28 Nathan Sidwell <nathan@acm.org>
1984
1985 * Makefile.in (SUBDIRS): New macro.
1986 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1987 avoid multiple subdirectory cleaning.
1988 (*-subdir): Use SUBDIRS.
1989
19901999-10-25 Jim Kingdon <http://developer.redhat.com/>
1991
1992 * cplus-dem.c: Move declarations of standard_symbol_characters and
1993 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1994 warnings.
1995
19961999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1997
1998 * hashtab.c (find_hash_table_entry): When returning a
1999 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2000 (clear_hash_table_slot): New function which deletes an entry
2001 by its position in the table, not its value.
2002 (traverse_hash_table): New function which calls a hook
2003 function for every live entry in the table.
2004
20051999-10-19 Mark Mitchell <mark@codesourcery.com>
2006
2007 * cplus-dem.c (INTBUF_SIZE): New macro.
2008 (string_append_template_idx): New function.
2009 (demangle_expression): Likewise.
2010 (demangle_integral_value): Use it.
2011 (demangle_real_value): New function, split out from ...
2012 (demangle_template_value_parm): ... here. Use
2013 string_append_template_idx. Use demangle_real_value.
2014 (demangle_template): Use string_append_template_idx.
2015 (demangle_qualified): Use consume_count_with_underscores.
2016 (get_count): Tweak formatting.
2017 (do_type): Use string_append_template_idx.
b4fe2683 2018
0c0a36a4
ILT
20191999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2020
2021 * calloc.c: Add a public domain notice.
2022
2023Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2024
2025 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2026
2027Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2028
2029 * Makefile.in (CFILES): Add hashtab.c
2030 (REQUIRED_OFILES): Add hashtab.o
2031 (hashtab.o): Add dependencies.
2032 * hashtab.c: New file
2033
2034Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2035
2036 * basename.c (DIR_SEPARATOR): New macro.
2037 (DIR_SEPARATOR_2): Likewise.
2038 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2039 (IS_DIR_SEPARATOR): Likewise.
2040 (main): Handle MSDOS style pathname.
2041
20421999-10-11 Mark Mitchell <mark@codesourcery.com>
2043
2044 * cplus-dem.c (do_type): Handle pointer to member types whose
2045 enclosing classes have namespace scope.
2046
2047Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2048
2049 * config.table: Provide a backup shell for executing move-if-change.
2050
20511999-10-02 Mark Mitchell <mark@codesourcery.com>
2052
2053 * xmalloc.c (xmalloc): Fix spelling error.
2054 (xcalloc, xrealloc): Likewise.
2055
20561999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2057
2058 * cplus-dem.c (fancy_abort, demangle_integral_value,
2059 demangle_arm_hp_template, recursively_demangle,
2060 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2061 (program_name, program_version, fatal): Constify a char*.
2062 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2063 (main): Call return, not exit.
2064
20651999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2066
2067 * choose-temp.c: Remove obsolete comment about gcc.
2068 (make_temp_file): Constify a char*.
2069
2070Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2071
2072 * xmemdup.c: Include sys/types.h.
2073
20741999-09-07 Jeff Garzik <jgarzik@pobox.com>
2075
2076 * xmemdup.c: New xmemdup function.
2077 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2078
2079Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2080
b4fe2683 2081 * config.table: Add openedition target.
0c0a36a4
ILT
2082 * config/mh-openedition: New file.
2083
2084Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2085
2086 * pexecute.c (pexecute): Fill in temp_base when needed.
2087
20881999-08-31 Richard Henderson <rth@cygnus.com>
2089
2090 * getpwd.c: Check HAVE_GETCWD before defining it away.
2091
20921999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2093
2094 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2095 (REQUIRED_OFILES): Add getpwd.o.
2096 (getpwd.o): Add target.
2097
2098 * configure.in (AC_PREREQ): Bump to 2.13.
2099 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2100
2101 * getpwd.c: New file, moved here from gcc.
2102
21031999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2104
2105 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2106 comparing against a signed quantity.
2107 (arm_special): Likewise.
2108 (demangle_fund_type): Likewise.
2109 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2110 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2111 (main): Constify variable `valid_symbols'.
2112
2113Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2114
2115 * strtoul.c (strtoul): Add parentheses around && within ||.
2116
2117Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2118
2119 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2120 libdir, libsubdir and tooldir.
2121
21221999-08-01 Mark Mitchell <mark@codesourcery.com>
2123
2124 * splay-tree.c (splay_tree_insert): Return the new node.
2125
35ca97ea
RH
21261999-07-14 Richard Henderson <rth@cygnus.com>
2127
b4fe2683 2128 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2129 prototyping directly.
2130 * choose-temp.c: Conditionally include string.h.
2131
0c0a36a4
ILT
21321999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2133
2134 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2135
af32ff69
ILT
21361999-07-11 Ian Lance Taylor <ian@zembu.com>
2137
2138 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2139 warning.
2140
0c0a36a4
ILT
21411999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2142
2143 * Makefile.in (needed-list): Only include stuff we actually need
2144 for libstdc++.
2145
21461999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2147
2148 * configure.in (checkfuncs): Add gettimeofday.
2149 * config.in, configure: Regenerated.
2150
2151Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2152
2153 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2154 the test fails.
2155 * configure: Regenerate.
2156
21571999-06-10 Mike Stump <mrs@wrs.com>
2158
2159 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2160 parallel builds.
2161
21621999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2163
2164 * putenv.c: Include ansidecl.h to define `const'.
2165 * setenv.c: Likewise.
2166
2167Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2168
2169 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2170 * configure.in (funcs): Add putenv and setenv.
2171 (AC_CHECK_FUNCS): Check for putenv and setenv.
2172 * configure: Rebuilt.
2173 * putenv.c setenv.c: New files.
2174
2175 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2176 bytes of space using malloc.
2177
2178Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2179
2180 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2181 the *mangled pointer beyond the end of the string. Clean up code to
2182 match prevailing coding style.
2183
21841999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2185
2186 * tmpnam.c (L_tmpnam): Fix typo.
2187
2188Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2189
2190 * cplus-dem.c (standard_symbol_characters): Renamed from
2191 standard_symbol_alphabet. No longer modify TABLE.
2192 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2193 modify TABLE.
2194 (main): Corresponding changes. Use strchr to determine if a
2195 character is valid.
2196
e9868447
JB
21971999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2198
2199 * cplus-dem.c (main): Use table lookup to distinguish identifier
2200 characters from non-identifier characters.
2201 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2202
33fbbfbc
RH
2203Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2204
2205 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2206 * getruntime.c: Only attempt to include sys/resource.h and
2207 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2208 are defined.
2209
0c0a36a4
ILT
2210Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2211
2212 * configure.in (alloca detection): Handle alloca directly for interix.
2213 * configure: Rebuilt.
2214
2215Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2216
2217 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2218
252b5132
RH
22191999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2220
2221 Fix from Dale Hawkins:
b4fe2683 2222 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2223 reallocated properly if we use it again.
2224
2225 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2226 stricter about syntax. Always null-terminate string.
2227
c1687039
ILT
2228Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2229
2230 * configure.in (checkfuncs): Check for sbrk.
2231 * config.in: Rebuilt.
2232 * configure: Likewise.
2233 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2234
0c0a36a4
ILT
22351999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2236
2237 Fix from Marcus Daniels:
2238 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2239 identifier looking for another underscore.
2240
2241Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2242
2243 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2244 * xmalloc.c: Likewise.
2245 (xcalloc): UWIN has sbrk.
2246 (xrealloc): Fix guard macro.
2247
252b5132
RH
22481999-04-11 Richard Henderson <rth@cygnus.com>
2249
2250 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2251 or <alloca.h>.
2252 * clock.c (GNU_HZ): New definition.
2253 (clock): Use it.
2254 * getruntime.c: Likewise.
2255
2256 * config.table: Use mh-beos.
2257 * config/mh-beos: New file.
2258
0c0a36a4
ILT
22591999-04-11 Mark Mitchell <mark@codesourcery.com>
2260
2261 * cplus-dem.c (demangle_template_value_parm): Handle
2262 pointers-to-members.
2263 (do_type): Handle template parameters as qualifiers.
2264
252b5132
RH
22651999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2266
2267 * cplus-dem.c: Attempt to handle overflows in counts with some
2268 semblance of grace.
2269 (consume_count): Detect overflows. Return -1 to indicate errors,
2270 instead of zero.
2271 (demangle_template_value_parm, demangle_template): Handle change
2272 to consume_count's return convention.
2273
0c0a36a4
ILT
22741999-04-05 Tom Tromey <tromey@cygnus.com>
2275
2276 * testsuite/regress-demangle: New file.
2277 * testsuite/demangle-expected: New file.
252b5132 2278
0c0a36a4
ILT
2279 * Makefile.in (all, check, installcheck, info, install-info,
2280 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2281 distclean, maintainer-clean, realclean): Depend on corresponding
2282 `-subdir' target.
2283 (all-subdir check-subdir installcheck-subdir info-subdir
2284 install-info-subdir clean-info-subdir dvi-subdir
2285 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2286 distclean-subdir maintainer-clean-subdir): New target.
2287 * testsuite/Makefile.in: New file.
2288 * configure: Rebuilt.
2289 * configure.in: Create testsuite/Makefile.
252b5132
RH
2290
22911999-04-02 Mark Mitchell <mark@codesourcery.com>
2292
2293 * splay-tree.h (splay_tree_compare_pointers): Define.
2294
22951999-03-30 Mark Mitchell <mark@codesourcery.com>
2296
2297 * splay-tree.c (splay_tree_compare_ints): Define.
2298
22991999-03-30 Tom Tromey <tromey@cygnus.com>
2300
2301 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2302 don't advance input pointer.
2303 (demangle_class_name): If consume_count didn't find a count, do
2304 nothing. Don't bother with `strlen' sanity check; consume_count
2305 does it for us.
2306
23071999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2308
2309 From Art Haas <ahaas@neosoft.com>:
2310 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2311 when doing arm or hp style.
2312 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2313
252b5132
RH
2314Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2315
2316 * pexecute.c (__CYGWIN32__): Rename to
2317 (__CYGWIN__): this.
2318 * xmalloc.c: Likewise.
2319
2320 Changes to support i386-pc-uwin.
2321 * configure.in (*-*-uwin*): Workaround for vfork bug.
2322 * configure: Regenerate.
2323 * pexecute.c (pexecute): Be like standard Unix.
2324 (pwait): Likewise.
2325 * xmalloc.c (first_break): Define.
2326 (xmalloc_set_program_name): Use.
2327 (xmalloc): Use.
2328
2329Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2330
2331 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2332
2333Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2334
2335 * config.table: Check cygwin*, not cygwin32*.
2336
2337Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2338
2339 * Makefile.in: Change mkstemp -> mkstemps.
2340
2341Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2342
2343 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2344 * configure.in (funcs): Check for and conditionally add mkstemps to
2345 the list of functions libiberty will provide.
2346 * configure: Rebuilt.
b4fe2683 2347
252b5132
RH
2348Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2349
b4fe2683 2350 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2351 platforms that don't have HZ.
2352 * getruntime.c (HZ): Likewise.
2353
2354Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2355
2356 * Makefile.in (xstrdup.o): Depend on config.h.
2357
2358Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2359
2360 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2361 freeing it.
2362
2363Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2364
2365 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2366
2367Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2368
2369 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2370 splay-tree.o.
2371
23721999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2373
2374 * configure.in: Require autoconf 2.12.1 or higher.
2375
23761998-12-30 Michael Meissner <meissner@cygnus.com>
2377
2378 * random.c (NULL): Don't redefine NULL if it is already defined.
2379
2380Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2381
2382 * argv.c (buildargv): Cast the result of alloca in assignment.
2383
2384 * choose-temp.c: Include stdlib.h.
2385
2386 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2387 (snarf_numeric_literal): Constify first parameter.
2388 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2389 int, not a char.
252b5132
RH
2390 (demangle_qualifier): Likewise.
2391 (demangle_signature): Cast the argument of a ctype function to
2392 unsigned char.
2393 (arm_pt): Add parens around assignment used as truth value.
2394 (demangle_arm_hp_template): Constify variable `args'.
2395 (do_hpacc_template_const_value): Cast the argument of a ctype
2396 function to unsigned char.
2397 (do_hpacc_template_literal): Remove unused variable `i'.
2398 (snarf_numeric_literal): Constify parameter `args'.
2399 Cast the argument of a ctype function to unsigned char.
2400
2401 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2402 avoid ambiguous `else'.
252b5132
RH
2403
2404 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2405 `cstart' and `cend' to unsigned char. Cast the argument of macro
2406 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2407
2408 * objalloc.c (free): Add prototype.
2409
2410Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2411
2412 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2413
2414Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2415
2416 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2417 doesn't exist.
252b5132 2418 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2419
252b5132
RH
2420Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2421
2422 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2423 bumping the pointer we read from. Also prepend these codes,
2424 as we do in other places.
2425
24261998-12-18 Nick Clifton <nickc@cygnus.com>
2427
2428 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2429 'const char *' in order to match its usage when calling siblings.
2430 (snarf_numeric_literal): Make first arg 'const char **' in order
2431 to match usage.
2432
2433Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2434
2435 * choose-temp.c: Don't check IN_GCC anymore.
2436
2437 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2438 * memchr.c (memchr): Likewise.
2439 * memcpy.c (memcpy): Likewise.
2440 * memmove.c (memmove): Likewise.
2441
2442 * mkstemp.c: Don't check IN_GCC anymore.
2443 * pexecute.c: Likewise.
2444 * splay-tree.c: Likewise.
2445
2446 * strchr.c (strchr): Use `const', not `CONST'.
2447 * strrchr.c (strrchr): Likewise.
2448 * strtol.c (strtol): Likewise.
2449 * strtoul.c (strtoul): Likewise.
2450
2451Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2452 Elena Zannoni <ezannoni@cygnus.com>
2453 Stan Shebs <shebs@cygnus.com>
2454 Edith Epstein <eepstein@cygnus.com>
2455 Andres MacLeod <amacleod@cygnus.com>
2456 Satish Pai <pai@apollo.hp.com>
2457
2458 * HP aCC demangling support.
2459 * cplus-dem.c
2460 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2461 demangling correctly when -edg specified; set the demangling style
2462 when user specifies 'edg'. Set strip_underscore to
2463 prepends_underscore, if not HPUXHPPA. Set
2464 current_demangling_style to hp_demangling if HPUXHPPA. Set
2465 current demangling style correctly if the switch is hp. Read
2466 label correctly also in the HP style case.
252b5132 2467 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2468 function.
252b5132 2469 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2470 style for this case is the same as ARM.
252b5132
RH
2471 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2472 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2473 demangle_arm_pt.); check and set value of temp_start field in
2474 multiple places. Also, when ceching for end of template args,
2475 check to see if at end of static member of template class.
252b5132 2476 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2477 include template args in string defining class.
252b5132
RH
2478 (demangle_class_name): use demangel_arm_hp_template.
2479 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2480 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2481 Handle EDG_DEMANGLING style. Handle constructor and destructor
2482 ops for HP style.
252b5132 2483 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2484 styles. global destructor and constructor for HP style are same
2485 as for ARM style. Same for local variables.
252b5132
RH
2486 (demangle_qualified): handle EDG_DEMANGLING style.
2487 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2488 cases '1' - '9' : initialize the temp_start field to -1 and handle
2489 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2490 and AUTO_DEMANGLING styles. If expecting a function and managed
2491 to demangle the funct args, then handle the LUCID_DEMANGLING,
2492 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2493 class name after "Lnnn_ in HP style case. HP style too needs to
2494 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2495 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2496 value param for HP/aCC.
252b5132 2497 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2498 literal parameter for HP aCC.
252b5132
RH
2499 (recursively_demangle): new function
2500 (snarf_numeric_literal): new function.
2501 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2502 to message.
252b5132
RH
2503
2504Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2505
2506 * pexecute.c: Remove obsolete ifdefed cygwin code.
2507
2508Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2509
2510 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2511 * cplus-dem.c: Likewise. Conform to libiberty.h.
2512 * pexecute.c: Likewise.
2513 * splay-tree.c: Likewise.
2514
25151998-11-25 Mike Stump <mrs@wrs.com>
2516
2517 * Makefile.in (splay-tree.o): Add config.h dependency.
2518
2519Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2520
2521 * configure.in: Use AC_PREREQ(2.12.1).
2522
25231998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2524
b4fe2683 2525 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2526
2527Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2528
2529 * mpw.c (mpw_access): Add missing parens.
2530
2531Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2532
2533 * configure.in: Call AC_HEADER_SYS_WAIT.
2534
2535 * pexecute.c: Include sys/wait.h when !IN_GCC.
2536
2537Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2538
2539 * pexecute.c: revert back to checking old Cygwin
2540 preprocessor symbol until some time has passed.
2541
2542Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2543
2544 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2545 since it will now support similar constructs.
2546
2547Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2548
2549 * configure.in: Check for calloc.
2550
2551 * calloc.c: New file.
2552
2553 * xmalloc.c (xcalloc): New function.
2554
2555Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2556
2557 *cplus-dem.c (demangle_prefix): Use the last "__"
2558 in the mangled name when looking for the signature. This allows
2559 template names to begin with "__".
2560
25611998-11-08 Mark Mitchell <mark@markmitchell.com>
2562
2563 * cplus-dem.c (type_kind_t): Add tk_reference.
2564 (demangle_template_value_parm): Handle it.
2565 (do_type): Use it for references, instead of tk_pointer.
2566
2567 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2568 not internal_cplus_demangle.
2569
2570Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2571
2572 * choose-temp.c: Don't include gansidecl.h.
2573 * mkstemp.c: Likewise.
2574 * pexecute.c: Likewise.
2575
2576Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2577
b4fe2683
JM
2578 * configure.in: detect cygwin* instead of cygwin32*
2579 * configure: regenerate
252b5132
RH
2580
2581Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2582
2583 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2584 whether to include config.h. Possibly include unistd.h in the
2585 !IN_GCC case. Define VFORK_STRING as a printable function call
2586 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2587 defined, include vfork.h. If VMS is defined, define vfork()
2588 appropriately. Remove vfork check on USG, we're using autoconf.
2589 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2590 locally what string to use.
252b5132
RH
2591
25921998-10-26 Mark Mitchell <mark@markmitchell.com>
2593
2594 * splay-tree.c: Tweak include directives to make sure declarations of
2595 xmalloc and free are available.
2596
25971998-10-25 Mark Mitchell <mark@markmitchell.com>
2598
2599 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2600 anonymous namespaces.
2601
26021998-10-23 Mark Mitchell <mark@markmitchell.com>
2603
2604 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2605 with type_quals.
2606 (TYPE_UNQUALIFIED): New macro.
2607 (TYPE_QUAL_CONST): Likewise.
2608 (TYPE_QUAL_VOLATILE): Likewise.
2609 (TYPE_QUAL_RESTRICT): Likewise.
2610 (code_for_qualifier): New function.
2611 (qualifier_string): Likewise.
2612 (demangle_qualifier): Likewise.
2613 (internal_cplus_demangle): Use them.
2614 (demangle_signature): Likewise.
2615 (demangle_template_value_parm): Likewise.
2616 (do_type): Likewise.
2617 (demangle_fund_type)): Likewise.
2618
2619Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2620
2621 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2622 to match prototype.
2623
26241998-10-21 Mark Mitchell <mark@markmitchell.com>
2625
2626 * splay-tree.c: New file.
2627 * Makefile.in (CFILES): Add it.
2628 (REQUIRED_OFILES): Likewise.
2629 (splay-tree.o): Add dependencies.
2630
2631Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2632
2633 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2634 range of 'K' index.
2635
2636Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2637
2638 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2639
2640 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2641 `unsigned char'.
2642 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2643 comparing against one.
2644 (cplus_mangle_opname): Likewise.
2645 (demangle_integral_value): Cast argument of ctype macro to
2646 `unsigned char'.
2647 (demangle_template_value_parm): Likewise.
2648 (demangle_template): Initialize variable `bindex'. Cast the
2649 result of `strlen' to (int) when comparing against one. Remove
2650 unused variable `start_of_value_parm'.
2651 (demangle_class_name): Cast the result of `strlen' to (int) when
2652 comparing against one.
2653 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2654 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2655 when comparing against one.
2656 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2657 (get_count): Likewise.
2658 (do_type): Likewise. Cast the result of `strlen' to (int) when
2659 comparing against one.
2660 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2661 (demangle_function_name): Cast the result of `strlen' to (int)
2662 when comparing against one.
2663
2664 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2665 comparing against one.
2666
2667Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2668
b4fe2683
JM
2669 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2670 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2671 * config.in, configure: Rebuilt.
252b5132
RH
2672
2673 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2674 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2675 * config.in, configure: Rebuilt.
2676
2677Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2678
b4fe2683 2679 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2680
2681Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2682
2683 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2684
2685Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2686
2687 * Merge egcs & devo libiberty.
2688