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