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