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