]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* jni.cc (_Jv_JNI_GetStringUTFChars): Fail gracefully if string
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
04bf85aa 12003-10-31 Andreas Jaeger <aj@suse.de>
2
3 * floatformat.c (floatformat_always_valid): Add unused attribute.
4
82ac7060 52003-10-30 Josef Zlomek <zlomekj@suse.cz>
6
7 Jan Hubicka <jh@suse.cz>
8 * vasprintf.c (int_vasprintf): Pass va_list by value.
9 Use va_copy for copying va_list.
10 (vasprintf): Pass va_list by value.
11
f324afe5 122003-10-30 Josef Zlomek <zlomekj@suse.cz>
13
14 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
15 instead of increasing n_elements when inserting to deleted slot.
16
147ca737 172003-10-20 J. Brobecker <brobecker@gnat.com>
18
19 * cplus-dem.c (demangle_template): Register a new Btype only
20 when needed.
21 * testsuite/demangle-expected: Add a new test.
22
12440823 232003-10-16 H.J. Lu <hongjiu.lu@intel.com>
24
25 * testsuite/demangle-expected: Update the expected output of
26 _GLOBAL__I__Z2fnv.
27
c5eb53ab 282003-10-02 Daniel Jacobowitz <drow@mvista.com>
29
30 * strerror.c: Revert last change. Declare static sys_nerr
31 and sys_errlist using different names.
32
704579f5 332003-10-01 Daniel Jacobowitz <drow@mvista.com>
34
35 * strerror.c: Don't provide or reference sys_errlist if
36 strerror is available.
37
40a84a93 382003-10-01 H.J. Lu <hongjiu.lu@intel.com>
39
40 * configure.in: Check if $MAKEINFO is missing.
41 * configure: Regenerated.
42
90305aaf 432003-09-24 Daniel Jacobowitz <drow@mvista.com>
44
45 * configure.in: Use AC_PROG_CPP_WERROR.
46 * configure: Regenerated.
47
63cb126c 482003-09-22 Andrew Cagney <cagney@redhat.com>
49
50 * floatformat.c (floatformat_i387_ext_is_valid): New function.
51 (floatformat_always_valid): New function.
52 (floatformat_i387_ext): Initialize new "is_valid" field to
53 "floatformat_i387_ext_is_valid".
54 (floatformat_ieee_single_little): Initialize "is_valid" field to
55 floatformat_always_valid.
56 (floatformat_ieee_double_big): Ditto.
57 (floatformat_ieee_double_little): Ditto.
58 (floatformat_ieee_double_little): Ditto.
59 (floatformat_ieee_double_littlebyte_bigword): Ditto.
60 (floatformat_i960_ext): Ditto.
61 (floatformat_m88110_ext): Ditto.
62 (floatformat_m88110_harris_ext): Ditto.
63 (floatformat_arm_ext_big): Ditto.
64 (floatformat_arm_ext_littlebyte_bigword): Ditto.
65 (floatformat_ia64_spill_big): Ditto.
66 (floatformat_ia64_spill_little): Ditto.
67 (floatformat_ia64_quad_big): Ditto.
68 (floatformat_ia64_quad_little): Ditto.
69 (floatformat_ia64_quad_little): Ditto.
70 (floatformat_is_valid): Call "is_valid".
71
8d083f49 722003-09-15 Andrew Cagney <cagney@redhat.com>
73
74 * floatformat.c (get_field): Make "data" constant.
75 (floatformat_is_valid, floatformat_to_double): Make "from"
76 constant, fix casts.
77 (floatformat_from_double): Make "from" constant.
78
8109b385 792003-09-15 Daniel Jacobowitz <drow@mvista.com>
80
81 * floatformat.c (floatformat_is_valid): New function.
82 (get_field, put_field): Correct comments.
83
76b64c1c 842003-09-06 Josef Zlomek <zlomekj@suse.cz>
85
86 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
87 FIBHEAPKEY_T.
88
71babb92 892003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
fc139dea 90
91 PR bootstrap/12100
92 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
93 * configure: Rebuilt.
94
a6089b1e 952003-08-27 Daniel Jacobowitz <drow@mvista.com>
96
97 * aclocal.m4: Include acx.m4 and no-executables.m4.
98 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
99 (LIB_AC_PROG_CC): Remove.
100 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
101 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
102 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
103 performing link tests.
104 * configure: Regenerated.
105
484e4040 1062003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
107
108 * cp-demangle.c: Clarify what package(s) this is part of.
109
945220d6 1102003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
111
112 * pex-win32.c (pexecute): Mark parameters this_pname and
113 temp_base as unused. Remove unused variables retries,
114 sleep_interval. Initialize org_stdin, org_stdout.
115 (pwait): Mark parameter flags as unused.
116
1172003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
eeaf6b14 118
119 * pex-win32.c (fix_argv): Ensure that the executable pathname
120 uses Win32 backslashes.
121 (pexecute): Cast away constness when assigning *errmsg_arg.
122
de885da0 1232003-06-26 H.J. Lu <hongjiu.lu@intel.com>
124
125 * testsuite/demangle-expected: Add more GNU V3 testcases.
126
b60500ad 1272003-06-22 Zack Weinberg <zack@codesourcery.com>
128
129 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
130 not HC_ASCII and HC_EBCDIC.
131 Add documentation in form expected by gather-docs.
132 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
133 * Makefile.in, functions.texi: Regenerate.
134
05b93640 1352003-06-21 Zack Weinberg <zack@codesourcery.com>
136
137 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
138 for charset determination.
139
c08775b2 1402003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
141
142 * configure.in: Add check for malloc.h needed by
143 m68k for function free().
144 * configure: Regenerated.
145 * config.in: Add HAVE_MALLOC_H.
146 * hashtab.c: include malloc.h were available for
147 free().
148
5e90539e 1492003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
05b93640 150
5e90539e 151 PR bootstrap/10974
152 * physmem.c: Update comment.
153 * configure.in: Modify test for _system_configuration for older
154 AIX systems.
155
156 * config.in, configure: Regenerated.
05b93640 157
b4c6b6f4 1582003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
159
160 PR other/10810
161 * test-demangle.c (getline): Fix fence-post error.
162
5958dc33 1632003-06-03 Nick Clifton <nickc@redhat.com>
164
165 * asprintf.c: Change comment to note that -1 is returned upon
166 error.
167 * vasprintf.c: Likewise.
168 (vasprintf): Return -1 upon error.
169 * functions.texi: Document changes to asprintf and vasprintf.
170
f11036bc 1712003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
172
173 * config.table: Accept i[345867]86 variant.
174
ffa082ba 1752003-05-15 Jim Blandy <jimb@redhat.com>
176
177 * hex.c (_hex_value): Make this unsigned.
178 (hex_value): Update documentation for new return type. hex_value
179 now expands to an unsigned int expression, to avoid unexpected
180 sign extension when we store it in a bfd_vma, which is larger than
181 int on some platforms.
182 * functions.texi: Regenerated.
183
d6dfdca2 1842003-05-07 Josef Zlomek <zlomekj@suse.cz>
185
186 * splay-tree.c (splay_tree_predecessor): Fix comment.
187 (splay_tree_successor): Fix comment.
188
b3552be1 1892003-05-07 Jason Merrill <jason@redhat.com>
190
24bfa234 191 * hashtab.c (iterative_hash): New fn.
b3552be1 192 * configure.in: Add AC_C_BIGENDIAN_CROSS.
193 * aclocal.m4: Include accross.m4.
194 * configure, config.in: Regenerate.
195
9bb0a517 1962003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
197
198 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
199 * configure: Regenerate.
200
ddb6bca9 2012003-05-03 Carlo Wood <carlo@alinoe.com>
202
203 * cp-demangle.c: Fix typo in "char_traints" string-literal.
204
8806a402 2052003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
206
207 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
208 (main): Test that we don't write too much data.
209
09fd37ef 2102003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
211
212 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
213 vsnprintf.
214 * snprintf.c, vsnprintf.c: New files.
215 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
216 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
217 Regenerate dependencies.
218
219 * functions.texi, configure, config.in: Regenerated.
220
79d940a3 2212003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
222
223 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
224 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
225 and stpncpy.
226 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
227 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
228 Regenerate dependencies.
229
230 * functions.texi, configure, config.in: Regenerated.
231
ca3ccdf6 2322003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
233
234 * argv.c: Fix comments.
235 * calloc.c: Don't unnecessarily include "libiberty.h".
236 (bzero): Add prototype.
237 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
238 * getcwd.c (getcwd): Use standard definition to avoid conflicts
239 with system headers.
240 * hashtab.c (htab_traverse): Delete unused variables.
241 * rename.c: Include "ansidecl.h".
242 (rename): Use standard definition to avoid conflicts with system
243 headers.
244 * strsignal.c: Rely on ANSI_PROTOTYPES.
245 * strstr.c: Check GNUC >= 2, not GNUC == 2.
246 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
247 * vprintf.c: Include "ansidecl.h" earlier, rely on
248 ANSI_PROTOTYPES.
249 * vsprintf.c: Include "ansidecl.h" earlier, rely on
250 ANSI_PROTOTYPES and possibly include <stdarg.h>.
05b93640 251
ca3ccdf6 252 * Makefile.in: Regenerate dependencies.
253
6b5ad644 2542003-04-15 DJ Delorie <dj@redhat.com>
255
256 * maint-tool (deps): Scan for headers in $srcdir also.
257
d526b550 2582003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
259
260 PR target/10338
261 PR bootstrap/10198
262 PR bootstrap/10140
263 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
264 __mempcpy.
265 * regex.c (regerror): Likewise.
266
83f85421 2672003-04-14 Roger Sayle <roger@eyesopen.com>
268
269 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
270 * memchr.c: Likewise.
271 * strcasecmp.c: Likewise.
272 * strncasecmp.c: Likewise.
273 * strncmp.c: Likewise.
274 * xatexit.c: Likewise.
275 * xmalloc.c: Likewise.
276
277 * copysign.c: Use traditional function declaration instead of DEFUN.
278 * sigsetmask.c: Likewise.
279
280 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
281 * memset.c: Likewise.
282
283 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
284 * memmove.c: Likewise.
285
68acb842 2862003-04-14 Roger Sayle <roger@eyesopen.com>
287
288 * strdup.c (strdup): Tweak implementation to use memcpy.
289
b5e94eb4 2902003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
291
292 * configure.in (HAVE_UINTPTR_T): Always define.
293 * configure: Regenerated.
294
62133c30 2952003-03-23 Alexandre Oliva <aoliva@redhat.com>
296
297 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
298 instead of $$CC alone.
299 (install_to_tooldir): Use it.
300
6d05ae35 3012003-17-03 Jan Hubicka <jh@suse.cz>
302
303 * hashtab.c (htab_traverse_noresize): Break out from ...
304 * hashtab.c (htab_traverse): ... here.
305
b9af005f 3062003-12-03 Jan Hubicka <jh@suse.cz>
307
6d4061d0 308 * hashtab.c (htab_expand): Fix warning.
309
b9af005f 310 * hashtab.c (htab_expand): Compute the size of hashtable based
311 on the number of elements actually used.
312 (htab_traverse): Call htab_expand when table is too empty.
313
68f6f1d9 3142003-03-11 Carlo Wood <carlo@gnu.org>
315
316 * cplus-dem.c (demangle_integral_value): Correction to reflect
317 patch of 2002-01-10 in order to also make negative multi-digits
318 without leading underscore work.
319
ac5e00d3 3202003-03-03 Mark Mitchell <mark@codesourcery.com>
321
322 * cplus-dem.c: Add license exception to copyright notice.
323
df4b17bf 3242003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
325
326 * physmem.c: Formatting changes from upstream.
327
eafe92ea 3282003-02-24 Danny Smith <dannysmith@users.source.forge.net>
329
330 * physmem.c (physmem_total): Add _WIN32 support.
331 (physmem_available): Likewise.
332
5833978f 3332003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
334
335 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
336 GSI_PHYSMEM.
337 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
338
4195ec6a 3392003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
340
341 * configure.in: Check for sys/systemcfg.h and
342 _system_configuration.
343 * physmem.c: Add support for AIX. Tweek formatting as per
344 upstream coreutils beta.
345
0991d38e 3462003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
347 Richard Earnshaw <rearnsha@arm.com>
348 Geoffrey Keating <geoffk@apple.com>
05b93640 349
0991d38e 350 * configure.in: Check for sys/sysctl.h and sysctl.
351 * physmem.c: Add support for *bsd and darwin.
352 * Makefile.in: Generate depedency for physmem.o.
353
622d92fb 3542003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
355
356 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
357 Tru64 UNIX.
358 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
359 Tru64 UNIX.
360
361 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
362 machine/hal_sysinfo.h, sys/table.h.
363 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
364 * configure, config.in: Regenerate.
365
8f3b8386 3662003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
367
368 * configure.in: Check for sys/sysmp.h and sysmp.
369 * physmem.c: Pull upstream copy, add support for irix6.
370
371 * config.in, configure: Regenerated.
372
25b160f7 3732003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
374
375 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
376 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
377 pstat_getdynamic.
05b93640 378
5cf67f1b 3792003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
380
381 * Makefile.in (CFILES): Add physmem.c.
382 (REQUIRED_OFILES): Add physmem.o.
383 * configure.in: Check for sys/pstat.h.
384 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
385 * physmem.c: New file, copied from textutils.
386
387 * config.in, configure: Regenerated.
388
846a645c 3892003-02-20 Daniel Jacobowitz <drow@mvista.com>
390
391 * Makefile.in (CFILES): Add lrealpath.c.
392 (REQUIRED_OFILES): Add lrealpath.o.
393 (lrealpath.o): Add rule.
394 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
395 * configure.in: Add realpath and canonicalize_file_name to
396 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
397 for canonicalize_file_name.
398 * lrealpath.c: New file.
399 * make-relative-prefix.c: Update documentation.
400 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
401 * config.in: Regenerated.
402 * configure: Regenerated.
403 * functions.texi: Regenerated.
404
82561650 4052003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
406
407 * cplus_dem.c: Fix typo: intializes -> initializes.
408
e4e6363f 4092003-02-20 Alexandre Oliva <aoliva@redhat.com>
410
411 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
412 config.status.
413 * configure: Rebuilt.
414
cc720498 4152003-02-13 Daniel Jacobowitz <drow@mvista.com>
416
417 Fix PR c++/7612.
418 * cplus-dem.c (demangle_signature): Call string_delete.
419 Remove extra string_init.
420 (demangle_arm_hp_template): Call string_delete instead of
421 string_clear. Add missing string_delete call.
422 (demangle_qualified): Add missing string_delete call.
423 (do_type): Remove unused variable btype. Add missing string_delete
424 call. Call string_delete instead of string_clear.
425 (demangle_fund_type): Move variable btype inside of the switch
426 statement. Add missing string_delete call.
427 (do_arg): Call string_delete instead of string_clear. Remove extra
428 string_init.
429 (demangle_nested_args): Free work->previous_argument.
430
d94d977c 4312003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
432
433 * acconfig.h: New file. Add uintptr_t.
434 * config.in: Regenerated.
435
5533bc76 4362003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
437
438 * libiberty.texi: Update to GFDL 1.2.
439
7f13318a 4402003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
441
442 * Makefile.in (libiberty_topdir): New subst.
443 (mkinstalldirs): Redefine in terms of the above.
444 * configure.in: AC_SUBST it.
445 * configure: Regenerate.
446
9d2299ec 4472003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
448
449 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
450 (info-subdir, install-info-subdir, clean-info-subdir)
451 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
452 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
453 Pass $(FLAGS_TO_PASS).
454
49f7db63 4552003-01-27 Alexandre Oliva <aoliva@redhat.com>
456
457 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
458 /`$$CC -print-multi-os-directory`.
459
a21acbbb 4602003-01-26 Daniel Jacobowitz <drow@mvista.com>
461
462 * hashtab.c (htab_create_alloc_ex): New function.
463 (hatab_set_functions_ex): New function.
464 (htab_delete, htab_expand): Support alternate allocation functions.
465
8c171144 4662003-01-24 Christopher Faylor <cgf@redhat.com>
467
468 * configure.in: Remove special pex-cygwin consideration.
469 * configure: Regenerate.
470 * pex-cygwin.c: Remove.
471 * Makefile.in: Remove pex-cygwin.[co] lines.
472
8cb0536d 4732003-01-24 Zack Weinberg <zack@codesourcery.com>
474
475 * Makefile.in (CFILES): Add pex-*.c.
476 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
477 (CONFIGURED_OFILES): Add pex-*.o.
478 (TEXIFILES): Add pexecute.txh.
479 (pexecute.o): Delete rule.
480 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
481 pex-unix.o, pex-win32.o): New rules.
482 * configure.in: Change AC_INIT argument to xmalloc.c.
483 Compute appropriate pexecute implementation and substitute it
484 as @pexecute@.
485
486 * pexecute.c: Split up into...
487 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
488 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
489 new files.
490
491 * functions.texi: Regenerate.
492 * configure: Regenerate.
493
aa5761b7 4942003-01-20 Josef Zlomek <zlomekj@suse.cz>
495
496 * hashtab.c (htab_expand): Fix allocation of new entries.
497
71aad3b8 4982003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
499
500 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
501
2e6a336d 502 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
503 mkinstalldirs command.
504
e162e528 5052002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
506
507 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
508 Define for hosts with HOST_EXECUTABLE_SUFFIX.
509
aba68506 5102002-11-24 Nick Clifton <nickc@redhat.com>
511
512 * make-relative-prefix.c (make_relative_prefix): Ensure return
513 string is empty before using strcat to construct it.
514
5feeeb38 5152002-11-22 Daniel Jacobowitz <drow@mvista.com>
516
517 * Makefile.in: Add make-relative-prefix.c.
518 * make-relative-prefix.c: New file.
519 * functions.texi: Rebuilt.
520
d7022963 5212002-11-16 Jakub Jelinek <jakub@redhat.com>
522
523 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
524 used with arguments in traditional C' warnings.
525
dacb9fcc 5262002-10-16 Jakub Jelinek <jakub@redhat.com>
527
528 * config.table: Use mh-s390pic for s390x too.
529
ff02de61 5302002-10-06 Andreas Jaeger <aj@suse.de>
531
532 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
533 variable and of strict-aliasing warning.
534 (grow_vect): Use char as first parameter.
535
5f7912d8 5362002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
537
538 * Makefile.in (all): Fix multilib parallel build.
539
05455547 5402002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
541
542 * cp-demangle.c (demangling_new): Cast 0 to enum.
543 (demangle_char): Cast return of strdup to char *.
544 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
545 (is_gnu_v3_mangled_dtor): Likewise.
546 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
547 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
548 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
549 * md5.c (md5_process_bytes): Cast results back to const void *.
550 (md5_process_block): Add cast to const md5_uint32 *.
551 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
552 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
553 unsigned short.
554 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
555 to void *.
556 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
557
bd5d1805 5582002-09-19 Nick Clifton <nickc@redhat.com>
559
560 * README: Update email addresses for bugs and patches.
561
0fe3478a 5622002-09-10 Mike Stump <mrs@apple.com>
563
564 * splay-tree.c (splay_tree_successor): Fix comments.
565
65e49ff1 5662002-09-11 Zack Weinberg <zack@codesourcery.com>
567
808b5085 568 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
65e49ff1 569 * testsuite/Makefile.in: Adjust for test-demangle.
570 * testsuite/regress-demangle: Deleted.
571 * testsuite/test-demangle.c: New file.
572 * testsuite/demangle-expected: Change \$ to $ throughout, now that
573 this file is not being read by a shell script.
574
5ca95c55 5752002-09-05 Roger Sayle <roger@eyesopen.com>
576
577 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
578
b251a88a 5792002-08-07 DJ Delorie <dj@redhat.com>
580
581 * regex.c (re_error_msgid): Just use a simple array of strings.
582 (re_compile_pattern): Compensate.
583 (re_comp): Likewise.
584 (re_comp): Likewise.
585 (regerror): Likewise.
586
f4e29b4a 5872002-07-29 Neil Booth <neil@daikokuya.co.uk>
588
589 * cplus-dem.c (PREPEND_BLANK): Remove.
ff02de61 590
abcf0552 5912002-07-10 Jason Merrill <jason@redhat.com>
592
593 * cp-demangle.c (demangle_identifier): Support extended Unicode
594 characters.
595
c62ef5b5 5962002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
597
598 * cp-demangle.c (demangle_v3_with_details): Wrap in
ff02de61 599 !defined IN_GLIBCPP_V3.
c62ef5b5 600
74c75ba5 6012002-07-01 Mark Mitchell <mark@codesourcery.com>
602
603 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
604 Set it for the "st" operator.
605 (demangle_expression): Handle expressions with types as arguments.
606
b2835908 6072002-06-30 Douglas Rupp <rupp@gnat.com>
608
609 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
610 * Makefile.in (OUTPUT_OPTION): Use.
611
c75cb827 6122002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
613
614 * Makefile.in (install_to_libdir): Add $(DESTDIR).
615 (install_to_tooldir): Likewise.
616
55fc5d04 6172002-06-17 Douglas Rupp <rupp@gnat.com>
618
619 * lbasename.c: Add 2002 to copyright.
620 (IS_DIR_SEPARATOR): Remove VMS junk.
621
8d24e548 6222002-06-05 Geoffrey Keating <geoffk@redhat.com>
623
624 * hashtab.c (htab_create): New stub function for backward
625 compatibility.
626 (htab_try_create): Likewise.
627
1f3233d1 6282002-06-03 Geoffrey Keating <geoffk@redhat.com>
629
630 * hashtab.c (htab_create): Delete.
631 (htab_try_create): Delete.
632 (htab_create_alloc): New.
633 (htab_delete): Support user-specified memory allocation.
634 (htab_expand): Likewise.
635
daa2cd64 6362002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
637
638 * configure.in: Fix typo in the code checking for sys_errlist.
639 * configure: Regenerated.
640
70102259 6412002-05-13 Andreas Schwab <schwab@suse.de>
642
643 * config.table: Use mh-x86pic also for x86-64.
644
0b045cf7 6452002-05-08 Alexandre Oliva <aoliva@redhat.com>
646
647 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
648 script entry, and set LD to it when configuring multilibs.
649 * configure: Rebuilt.
650
63e428d5 6512002-05-07 Mark Mitchell <mark@codesourcery.com>
652
653 * configure.in (AC_TYPE_PID_T): Use it.
654 * configure: Regenerated.
655 * getruntime.c: Include <sys/types.h>.
656 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
657
8c8eb750 6582002-04-09 Richard Henderson <rth@redhat.com>
659
660 * hashtab.c (higher_prime_number): Use 7 as minimum.
661 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
662 (htab_find_slot_with_hash): Likewise.
663
5acfe29d 6642002-04-01 Phil Edwards <pme@gcc.gnu.org>
665
666 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
667 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
668 not compile if IN_GLIBCPP_V3 defined.
669 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
670
87591c4a 6712002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
672
ff02de61 673 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
87591c4a 674 if it is NULL.
675
b8327a91 6762002-03-27 DJ Delorie <dj@redhat.com>
677
678 * hex.c: Add documentation.
679 (_hex_value): Provide non-ASCII empty table.
680 (hex_init): Initialize the non-ASCII table.
681 * functions.texi: Regenerate.
682
baf716a5 6832002-03-27 Mark Mitchell <mark@codesourcery.com>
684
685 * dyn-string.c: Add libgcc exception to copyright notice.
686
60d10194 6872002-03-26 H.J. Lu (hjl@gnu.org)
688
689 * config.table: Support --with-build-subdir.
690 * configure.in: Likewise.
691 * configure: Rebuild.
692
8b7d2865 6932002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
694
695 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
696 seen.
697
8916275c 6982002-03-12 Mark Mitchell <mark@codesourcery.com>
699
700 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
701 notice.
702
241f7b9c 7032002-03-11 Douglas B Rupp <rupp@gnat.com>
704
705 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
706
bc95356d 7072002-03-06 Jim Blandy <jimb@redhat.com>
708
709 * splay-tree.c (splay_tree_xmalloc_allocate,
710 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
711 prototyped definitions. Mark `data' arguments as unused.
712
5a3c5094 7132002-03-06 Andrew Cagney <ac131313@redhat.com>
714
715 * floatformat.c (floatformat_arm_ext_big): Delete definition.
716
9123512a 7172002-03-04 Phil Edwards <pme@gcc.gnu.org>
718
719 * configure.in: Add --enable-install-libiberty option.
720 * Makefile.in (INSTALLED_HEADERS): New variable.
721 (install_to_libdir): Possibly also copy headers.
722 * configure: Regenerated.
723
5e571023 7242002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
725
726 * xmalloc.c (xmalloc_fail): Clarify error message further.
727
323c06f5 7282002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
729
730 * xmalloc.c (xmalloc_fail): Clarify error message.
731
a3af3ae8 7322002-02-22 Jim Blandy <jimb@redhat.com>
733
734 * splay-tree.c (splay_tree_xmalloc_allocate,
735 splay_tree_xmalloc_deallocate): New functions.
736 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
737 above functions and a dummy data pointer.
738 (splay_tree_new_with_allocator): New function.
739 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
740 splay_tree_remove): Use the splay tree's allocation and
741 deallocation functions.
742
080f842c 7432002-02-19 Scott Snyder <snyder@fnal.gov>
744
745 * testsuite/demangle-expected: Add test case for infinite loop in
746 demangler.
747 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
748 if do_type() doesn't make any progress --- prevents an infinite
749 loop.
750
a9e05c62 7512002-02-18 Carlo Wood <carlo@gnu.org>
752
753 PR c++/5390
754 * cplus-dem.c (demangle_integral_value): Accept multi-digit
755 numbers that do not start with an underscore; This is needed
756 for integer template parameters. This doesn't break anything
757 because multi-digit numbers are never followed by a digit.
758 * testsuite/demangle-expected: Corrected all mangled test
759 cases with multi-digit template parameters: g++ 2.95.x does
760 not generate underscores around these parameters.
761
c6d86b63 7622002-02-05 Jason Merrill <jason@redhat.com>
763
764 * cplus-dem.c (flags): Add DMGL_VERBOSE
765 (cplus_demangle_v3_p): Remove.
766 (demangle_it): Add DMGL_TYPES to passed flags.
767 * cp-demangle.c (cplus_demangle_v3_all): Remove.
768 (cplus_demangle_v3_type): Remove.
769 (cplus_demangle_v3): Add options parm.
770
9bd54051 7712002-02-02 H.J. Lu (hjl@gnu.org)
772
773 * cp-demangle.c (cp_demangle_type): Do not protect with
774 IN_LIBGCC2.
775 (cplus_demangle_v3_all): New.
776 (cplus_demangle_v3): Call cplus_demangle_v3_all.
777 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
778
779 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
780 Initialized to cplus_demangle_v3.
781 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
782 of cplus_demangle_v3.
783 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
784 command line symbol.
785
786 * testsuite/regress-demangle: Pass the mangled name at the
787 command line.
788
db248273 7892002-02-01 H.J. Lu <hjl@gnu.org>
790
791 * cp-demangle.c (cp_demangle_type): Call demangling_new with
792 DMGL_GNU_V3.
793
89a5385c 7942002-01-31 Phil Edwards <pme@gcc.gnu.org>
795
796 * cp-demangle.c: Revert yesterday's change.
797
da383dd4 7982002-01-31 Adam Megacz <adam@xwt.org>
799
800 * gcc/libiberty/configure.in: Treat mingw the same as cywin
801 wrt HAVE_SYS_ERRLIST.
802
1e72f309 8032002-01-30 Phil Edwards <pme@gcc.gnu.org>
804
805 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
806 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
807 cp_demangle_type.
808 * testsuite/demangle-expected: New gnu-v3 test.
809
2c79f170 8102002-01-22 Momchil Velikov <velco@fadata.bg>
811
812 * configure.in (variable detection): Use arrays of unspecified
813 size instead of plain integers.
814
98b6fc70 8152002-01-18 DJ Delorie <dj@redhat.com>
816
817 * Makefile.in (TESTLIB): New. This library is for future
818 testsuites.
819 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
820 break down by letter.
821 (REQUIRED_OFILES): List long-to-compile files first.
822 (maint-deps): New, target for updating dependencies.
823 (dependencies): Update.
824 * maint-tool: Add dependency-generating option.
825 * configure.in: Check for _doprnt even if we're not providing it.
826 * configure: Regenerate.
827
828 * _doprnt.c: Modifications to allow compiling on any platform.
829 * copysign.c: Likewise.
830 * putenv.c: Likewise.
831 * setenv.c: Likewise.
832 * vsprintf.c: Likewise.
833
b4eac72f 8342002-01-15 Douglas B Rupp <rupp@gnat.com>
835
836 * mkstemps.c (mkstemps): On VMS, open temp file with option
837 that causes it to be deleted when closed.
838
7806d7a4 8392002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
840
c077395f 841 * cp-demangle.c (long_options): Const-ify.
842 * cplus-dem.c (long_options): Likewise.
843
7806d7a4 844 * cplus-dem.c (mystrstr): Delete. All callers changed to use
845 strstr instead.
846
936c37fd 8472001-12-31 Ira Ruben <ira@apple.com>
848
849 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
850 * configure: Regenerated.
e9894157 851
8522001-12-24 Douglas B. Rupp <rupp@gnat.com>
853
854 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
855 * configure: Regenerated.
936c37fd 856
4e3ed534 8572001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
858
859 PR other/2719
860 * cplus-dem.c (consume_count): Treat negative count as an error.
861 * testsuite/demangle-expected: Added testcase.
862
8f966bdb 863Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
864
865 * configure.in: Hardcode that vfork works on VMS host.
866 * configure: Regenerated.
867
8d87ccec 8682001-12-06 Richard Henderson <rth@redhat.com>
869
870 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
871 (cplus_demangle): Support no_demangling.
872
31972771 8732001-11-27 Zack Weinberg <zack@codesourcery.com>
874
875 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
876 in libiberty context. Fix typo in leading comment.
877 * configure.in: Fix various AC_DEFINEs so autoheader works.
878 If any of vprintf, vsprintf, vfprintf is missing from libc,
879 then AC_REPLACE_FUNCS(_doprnt).
880
8e198eb2 8812001-11-26 DJ Delorie <dj@redhat.com>
31972771 882 Daniel Jacobowitz <drow@mvista.com>
8e198eb2 883
884 * Makefile.in (stamp-h): Depend on Makefile for proper
885 serialization.
886 (*-subdir): Depend on config.h for proper serialization.
887
c660fab8 8882001-11-26 DJ Delorie <dj@redhat.com>
889
890 * configure.in: Check for alloca.h (for regex.c and putenv.c).
891 * configure: Regenerate.
892 * config.h: Add HAVE_ALLOCA_H.
893
43eb13f7 8942001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
895
81cea2ab 896 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
897 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
898 is available.
43eb13f7 899
e9fb7b39 900Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
901
7b190504 902 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
903 * configure.in (HAVE_UINTPTR_T): Test for system defining
904 uintptr_t and define HAVE_UINTPTR_T appropriately.
905 * regex.c (uintptr_t): Do not provide a definition if the
906 system provided one.
907
e9fb7b39 908 * regex.c (PREFIX): Provide an alternate definition for
909 non-ANSI/ISO compilers.
910 (ARG_PREFIX): Likewise.
911
448378fc 9122001-11-12 Jim Meyering <meyering@lucent.com>
913
914 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
915 this code would end up calling gettext even in packages built
916 with --disable-nls.
917 * getopt.c (_): Likewise.
918 * regex.c (_): Likewise.
919
7c9e70dd 9202001-11-03 Alan Modra <amodra@bigpond.net.au>
921
922 * configure.in: Cope with missing makeinfo.
ebfeb892 923 * configure: Regenerate.
7c9e70dd 924
a3493641 9252001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
926
e500d428 927 * hex.c (hex_init): Provide empty stub.
928
a3493641 929 * hex.c (hex_init): Delete.
930 (_hex_value): Const-ify and initialize at compile-time.
931
3de15244 9322001-10-19 H.J. Lu <hjl@gnu.org>
933
934 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
935 necessary.
936
f0ed5ac1 9372001-10-17 DJ Delorie <dj@redhat.com>
938
939 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
940 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
0af1044a 941 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
f0ed5ac1 942 Improve manual formatting.
943 * functions.texi: Regenerate.
944
349e8276 9452001-10-15 DJ Delorie <dj@redhat.com>
946
947 * Makefile.in (TEXIFILES): Add fnmatch.txh.
948 (maint-undoc): New.
949 maint-tool: Add "undoc" tool.
950 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
951 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
952 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
953 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
954 documentation.
955 * fnmatch.txh: New.
956 * functions.texi: Regenerate.
8cc9ccc9 957
8a630ee4 9582001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
959
960 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
961 * strtod.c: Use "ISO C" instead of "ANSI C".
962 * functions.texi: Regenerate.
963
a3a8a3df 9642001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
965
966 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
967 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
968 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
969 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
970 spelling. Give names to function arguments in documentation. Use
971 (void) prototypes in documentation.
972 * functions.texi: Regenerate.
973
542e9271 9742001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
975
976 * argv.c (buildargv, tests, main): Const-ify.
977 * cp-demangle.c (operator_code): Likewise.
978 * cplus-dem.c (optable, libiberty_demanglers,
979 cplus_demangle_set_style, cplus_demangle_name_to_style,
980 print_demangler_list): Likewise.
981 * hashtab.c (higher_prime_number): Likewise.
982 * strcasecmp.c (charmap): Likewise.
983 * strerror.c (error_info, strerror, main): Likewise.
984 * strncasecmp.c (charmap): Likewise.
985 * strsignal.c (signal_info): Likewise.
986
5b7836cc 9872001-09-29 DJ Delorie <dj@redhat.com>
988
989 * configure: Regenerate.
990
e7faea46 9912001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
992
993 * concat.c: Include stdlib.h.
994
997fdf4a 9952001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
996
997 * libiberty.texi: (Top level): Add syncodeindex pg. Add
998 @dircategory and @direntry directives. Add @finalout.
999 (many nodes): Lose the next,prev,up pointers on the @nide line.
1000 (Using, Supplemental Functions, Replacement Functions): Fix
1001 markup.
1002 (Functions): Move around, to allow makeinfo to build the manual
1003 without next,prev,up pointers in thye node lines.
1004 (Licenses): Fix typos.
1005
1006 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1007 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1008 * functions.texi: Regenerate.
1009
1010 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1011 line.
1012
eb765d0c 10132001-09-27 DJ Delorie <dj@redhat.com>
1014
1015 * configure.in: Don't use in-tree texinfo, because libiberty must
1016 be built before it. Check for makeinfo version 4 or higher.
1017 * functions.texi: Regenerate.
8cc9ccc9 1018
614a23c6 10192001-09-20 DJ Delorie <dj@redhat.com>
1020 Phil Edwards <pedwards@disaster.jaj.com>
8cc9ccc9 1021
614a23c6 1022 * configure.in (MAKEINFO, PERL): Detect these.
1023 (--enable-maintainer-mode): Add.
1024 * configure: Regenerate.
1025 * Makefile.in (MAKEINFO, PERL): Define.
1026 (libiberty.info, libiberty.dvi, libiberty.html): New.
1027 (CFILES): Add bsearch.c.
1028 (CONFIGURED_OFILES): New, list of objects configure might add.
1029 (maint-missing, maint-buildall): New, for maintainers only.
1030 (clean, mostlyclean): Add info/dvi/html files.
1031 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1032 * gather-docs: New, for maintainers.
1033 * maint-tool: New, for maintainers.
1034 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1035 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1036 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1037 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1038 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1039 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1040 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1041 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1042 documentation.
8cc9ccc9 1043
92f03c00 10442001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1045
1046 * concat.c (reconcat): Fix for traditional C.
1047
0be2ebc7 10482001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1049
1050 * concat.c (reconcat): New function.
1051
add62f6a 10522001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1053
9659201a 1054 * concat.c (vconcat_length, vconcat_copy, concat_length,
1055 concat_copy, concat_copy2): New functions.
1056 (concat): Use vconcat_length/vconcat_copy.
1057
add62f6a 1058 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1059 Define.
1060
2bfbbd2b 10612001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1062
1063 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1064 VA_FIXEDARG & VA_CLOSE.
8cc9ccc9 1065
2bfbbd2b 1066 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1067 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1068 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1069
68036f05 10702001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1071
1072 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1073
958cb671 10742001-08-23 Ulrich Drepper <drepper@redhat.com>
1075
1076 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1077
10782001-08-23 Ulrich Drepper <drepper@redhat.com>
1079
1080 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1081 instead of mbrtowc.
1082 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1083 wcslen, and __wcscoll instead of wcscoll.
1084
b266b68b 10852001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1086
ff02de61 1087 * fibheap.c (fibheap_init, fibnode_init): Remove.
1088 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1089 initialize memory.
1090 (fibheap_insert): Remove check for node allocation failure.
b266b68b 1091
c6028964 10922001-08-21 Richard Henderson <rth@redhat.com>
1093
1094 * Makefile.in (fibheap.o): Depend on config.h.
1095 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1096 functions for inlining.
1097
3652f680 1098Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1099
1100 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1101 hosting on cygwin.
1102 * configure: Regenerate.
1103
95f0a124 11042001-08-20 Andrew Cagney <ac131313@redhat.com>
1105
1106 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1107 HARRIS_FLOAT_FORMAT.
1108 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1109 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1110 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1111 (floatformat_m88110_harris_ext): New float formats.
1112
522a00cd 11132001-08-20 Daniel Berlin <dan@cgsoftware.com>
1114
1115 * fibheap.c: New file. Fibonacci heap.
1116
1117 * Makefile.in (CFILES): Add fibheap.c.
1118 (REQUIRED_OFILES): Add fibheap.o.
1119 (fibheap.o): Add dependencies for fibheap.o.
1120
6a51e4c4 11212001-08-17 Christopher Faylor <cgf@cygnus.com>
1122
1123 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1124 * configure: Regenerate.
1125
80f07f6c 11262001-08-16 Richard Henderson <rth@redhat.com>
1127
1128 * hashtab.c (htab_hash_string): New.
1129
e9106811 11302001-08-13 Andrew Cagney <ac131313@redhat.com>
1131
1132 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1133 name.
1134
458e9fd0 11352001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1136
1137 * regex.c (wcs_regex_compile): Use appropriate string
1138 to compare with collating element.
1139 Fix the padding for the alignment.
1140
da8a7320 11412001-08-10 Andrew Cagney <ac131313@redhat.com>
2bce2a69 1142
1143 * lbasename.c (lbasename): Change function definition to return a
1144 const char pointer.
1145
6539a5d8 11462001-08-07 Jason Merrill <jason_merrill@redhat.com>
1147
1148 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1149 for".
1150
2644ae20 11512001-08-03 Richard Henderson <rth@redhat.com>
1152
1153 * Makefile.in (concat.o): Depend on config.h.
1154
6c9ffcbc 11552001-07-30 Andreas Jaeger <aj@suse.de>
1156
1157 * concat.c: Include "config.h".
1158
9f21bac8 11592001-07-30 Andreas Jaeger <aj@suse.de>
1160
1161 * regex.c: Declare wcs functions only if compiling with
1162 MBS_SUPPORT.
1163 Don't use #elif for traditional C.
1164
11652001-07-23 Ulrich Drepper <drepper@redhat.com>
1166
1167 * regex.c: Revamp memory allocation for WCHAR functions to
1168 not use too much stack.
1169
11702001-07-30 Andreas Jaeger <aj@suse.de>
1171
1172 * regex.c: Declare wcs functions only if compiling with
1173 MBS_SUPPORT.
1174 Don't use #elif for traditional C.
1175
2bbbdf1a 11762001-07-25 Daniel Jacobowitz <drow@mvista.com>
1177
1178 * Makefile.in (regex.o): Add dependency on config.h.
1179
b92e80db 11802001-07-18 Andreas Schwab <schwab@suse.de>
1181
1182 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1183 underscore character.
1184
11852001-07-18 Ulrich Drepper <drepper@redhat.com>
1186
1187 * regex.c: Limit string length printed in debug messages to 100
1188 chars.
1189
11902001-07-18 Andreas Jaeger <aj@suse.de>
1191
1192 * regex.c: Place under LGPL version 2.1.
1193
7703a7de 11942001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1195
1196 * Makefile.in: Add support for regex code.
1197 * regex.c: New file.
1198
8568af22 11992001-07-05 Mark Klein <mklein@dis.com>
1200
1201 * Makefile.in: Add ffs.c dependency.
1202 * configure.in: Add ffs.c.
1203 * ffs.c: New file.
1204
c1a60b7d 12052001-06-18 Richard Henderson <rth@redhat.com>
1206
1207 * concat.c: Include <sys/types.h>.
1208
66806be2 12092001-06-11 Loren J. Rittle <ljrittle@acm.org>
1210
2778f1dc 1211 bootstrap/3106
66806be2 1212 * strerror.c (sys_nerr): Hide the OS header version.
1213 * strsignal.c (sys_nsig): Likewise.
1214
222ce6b9 12152001-06-10 Richard Henderson <rth@redhat.com>
1216
1217 * concat.c: Include string.h. Fix int vs size_t usage.
1218 Simplify the iteration loops. Use memcpy.
1219
cb6758b9 12202001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1221
1222 * partition.c: Fix misspelling of `implementation'.
1223
091eef96 12242001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1225
1226 * md5.c (md5_init_ctx): Declare constants as unsigned.
1227 (md5_process_block): Likewise.
1228
e5f55ef4 12292001-05-07 Zack Weinberg <zackw@stanford.edu>
1230
1231 * cp-demangle.c (demangle_v3_with_details,
1232 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1233 function definition.
1234 * ternary.c: Use K+R style function definitions. Use PTR, not
1235 void *. Make arguments constant where possible.
1236
c99b4ef9 12372001-05-07 Mark Mitchell <mark@codesourcery.com>
1238
1239 * splay-tree.h (splay_tree_max): New function.
1240 (splay_tree_min): Likewise.
1241
eec19420 12422001-04-15 Daniel Berlin <dan@cgsoftware.com>
1243
1244 * ternary.c: New file - Ternary search tree implementation.
1245
1246 * Makefile.in: Add ternary.o, and ternary.c dependencies.
1247
673b6e5a 12482001-04-03 Zack Weinberg <zackw@stanford.edu>
1249
1250 * make-temp-file.c (try): Inline.
1251
b8f02fb2 12522001-02-28 Richard Henderson <rth@redhat.com>
1253
1254 * Makefile.in (make-temp-file.o): Depend on config.h.
1255
b130ede9 12562001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1257
1258 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1259
5a4fcef0 12602001-03-23 Jakub Jelinek <jakub@redhat.com>
1261
1262 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1263 `_' not followed by a digit is invalid.
1264
c83c8218 12652001-03-22 Jim Blandy <jimb@redhat.com>
1266
1267 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1268 instead of free, to free the contents as well as the string
1269 structure.
1270
7e660a1b 12712001-03-21 Zack Weinberg <zackw@stanford.edu>
1272
1273 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1274 Don't default P_tmpdir to anything. Try /var/tmp before
1275 /usr/tmp.
1276
e6351181 12772001-03-20 Zack Weinberg <zackw@stanford.edu>
1278
1279 * choose-temp.c: Split off make_temp_file, and the code
1280 duplicated between it and choose_temp_base, into...
1281 * make-temp-file.c: ... here; new file.
1282
1283 * Makefile.in (CFILES): Add make-temp-file.c.
1284 (REQUIRED_OFILES): Add make-temp-file.o.
1285
3a18c9fc 12862001-03-20 Jim Blandy <jimb@redhat.com>
1287
1288 * cp-demangle.c (struct demangling_def): New fields:
1289 is_constructor and is_destructor.
1290 (demangling_new): Initialize them.
1291 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1292 or destructor.
1293 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1294 is_gnu_v3_mangled_dtor): New functions.
1295
d219f684 12962001-03-20 Jason Merrill <jason@redhat.com>
1297
1298 * cplus-dem.c (main): Skip initial $.
1299
dfc58e62 13002001-03-15 Michael Meissner <meissner@redhat.com>
1301
1302 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1303 might be a signed integer under pre-ISO C systems.
1304
0bce9b89 13052001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1306 John David Anglin <dave@hiauly1.hia.nrc.ca>
1307
1308 * libiberty/lbasename.c: New file.
1309 * libiberty/Makefile.in: Update for lbasename.
1310
012f1707 13112001-03-06 Zack Weinberg <zackw@stanford.edu>
1312
1313 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1314 * configure.in: Replace all alloca logic with a simple use of
1315 the above new macro.
1316 * config.table: Kill *-*-beos* entry.
1317 * config/mh-beos: Delete.
1318 * configure, config.in: Regenerate.
1319
1320 * Makefile.in (ALLOCA, HFILES): Kill.
1321 (REQUIRED_OFILES): Add alloca.o.
1322 (alloca.o): Depend on libiberty.h.
1323 (argv.o): Don't depend on alloca-conf.h.
1324 * alloca-conf.h: Delete.
1325 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1326 blocks. Provide the C alloca unconditionally. Use PTR where
1327 appropriate. Make i00afunc static.
1328 * argv.c: Don't include alloca-conf.h.
1329
163369e7 13302001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1331
1332 * cplus-dem.c (main): Cast enum style to int.
1333
39fb1bb6 13342001-02-16 Loren J. Rittle <ljrittle@acm.org>
1335
1336 * cplus-dem.c (main): Initialize style.
1337
bace101a 13382001-02-02 Phil Edwards <pme@sources.redhat.com>
1339
1340 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1341
1c1033dd 13422001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1343
1344 Add support for Java demangling under the v3 ABI:
1345 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1346 (struct demangling_def): Add `style' field.
1347 (demangling_new): New parameter `style'. Set it in demangling_t.
1348 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1349 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1350 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1351 (main): Call cp_demangle with extra parameter.
1352 (java_demangle_v3): New function.
1353 (java_builtin_type_names): New. Table of primitive type names used
1354 for Java demangling.
1355 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1356 Java output.
012f1707 1357 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 1358 demangling.
1359 (long_options): Remove obsolete `java' option.
1360 (main): Remove explicit handling of `java' option. Instead, pass style
1361 parameter in cplus_demangle flags as gdb does.
1362 * testsuite/demangle.expected: Add some Java test cases.
1363
fec9182b 13642000-12-29 DJ Delorie <dj@redhat.com>
1365
1366 * fnmatch.c: Make the note about the origins of this file more
1367 accurate, at least until we can sync with glibc.
1368 * getopt.c: Ditto.
1369 * getopt1.c: Ditto.
1370 * md5.c: Ditto.
1371 * obstack.c: Ditto.
1372
5b9c32cc 13732000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1374
1375 * bsearch.c: New file.
1376 * configure.in (funcs): Add bsearch.
1377 (AC_CHECK_FUNCS): Likewise.
1378 * configure, config.in: Regenerate.
1379
a973e2b1 13802000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1381
1382 * safe-ctype.c: #include "ansidecl.h".
1383 * strtod.c: Likewise.
1384
14282c1a 13852000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1386
1387 * strtoul.c: Include safe-ctype.h, not ctype.h.
1388
93ce8ce4 13892000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1390
1391 * safe-ctype.c: New file.
1392 * Makefile.in (CFILES): Add safe-ctype.c.
1393 (REQUIRED_OFILES): Add safe-ctype.o.
1394
1395 * argv.c: Define ISBLANK and use it, not isspace.
1396 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1397 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1398 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1399 before calling TOLOWER(c)/TOUPPER(c).
1400
be6afa8f 14012000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 1402
1403 * Makefile.in (distclean): When cleaning, remove testsuite.
1404
cf0ad6a8 14052000-12-05 Jason Merrill <jason@redhat.com>
1406
1407 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1408 name before allocating the dyn_string.
1409
bb505139 14102000-12-04 Jason Merrill <jason@redhat.com>
1411
1412 * cp-demangle.c: s/new_abi/v3/.
1413 * cplus-dem.c: Likewise.
1414 (current_demangling_style): Now auto_demangling.
1415 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 1416 (main): Use standard symbol chars for auto_demangling.
bb505139 1417
54b3a5af 14182000-11-26 Mark Mitchell <mark@codesourcery.com>
1419
1420 * hashtab.c (higher_prime_number): Use a table, rather than a
1421 seive, to find the next prime.
1422
9628d706 14232000-11-22 H.J. Lu <hjl@gnu.org>
1424
1425 * cplus-dem.c (main): Handle gnat_demangling.
1426
ec255163 14272000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1428
1429 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1430 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1431 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1432 argument form of AC_DEFINE in dummy definitions block. Use
1433 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1434 in dummy block. Preload cache variables instead of bypassing
1435 tests, where possible.
1436 * acconfig.h: Removed.
1437
1438 * xmalloc.c (xmalloc_failed): New function, does error
1439 reporting on failed allocation.
1440 (xmalloc, xcalloc, xrealloc): Use it.
1441
626946fb 14422000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1443
1444 * cplus-dem.c (cplus_demangle): Fix formatting.
1445 (grow_vect): Ditto.
1446 (ada_demangle): Ditto.
1447 (internal_cplus_demangle): Ditto.
1448 (mop_up): Ditto.
1449
14502000-11-21 H.J. Lu <hjl@gnu.org>
1451
1452 * cplus-dem.c (main): Handle java_demangling.
1453
918a89ef 14542000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1455
1456 * cplus-dem.c (grow_vect): Prototype.
1457 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1458
582f72ad 14592000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1460
1461 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1462 parameter `option'.
1463
0d6e3c59 14642000-11-15 Kenneth Block <kenneth.block@compaq.com>
1465
42ded3a1 1466 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 1467 be used in GCC.
1468
9df8b754 14692000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 1470
582f72ad 1471 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 1472 list.
1473
e4c2dc6e 14742000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1475
1476 * hashtab.c (htab_expand): Change to return int. Use calloc or
9f21bac8 1477 xcalloc depending on htab->return_allocation_failure. Return zero
1478 if calloc fails.
e4c2dc6e 1479 (htab_create): Update comment to cover memory allocation.
1480 (htab_try_create): New.
1481 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
9f21bac8 1482 Update comment to cover this.
e4c2dc6e 1483
696d6593 14842000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1485
1486 * hashtab.c: Change void * to PTR where necessary.
1487 (htab_create, htab_expand): Correct formatting of comment before
1488 function.
1489
8f2b45d4 14902000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 1491
1492 * cp-demangle.c (string_list_def): Add caret_position and comments.
1493 (result_caret_pos): New macro.
1494 (result_append_string): Rename to...
1495 (result_add_string): ... this, and insert at caret position.
ec255163 1496 Rename throughout.
f99edf23 1497 (result_append): Rename to...
1498 (result_add): ... this, and insert at caret position. Rename
ec255163 1499 throughout.
f99edf23 1500 (result_append_char): Rename to...
1501 (result_add_char): ... this, and insert at caret position. Rename
ec255163 1502 throughout.
f99edf23 1503 (result_append_space): Remove.
1504 (string_list_new): Initialize caret position.
1505 (result_add_separated_char): Use caret position.
1506 (result_get_caret): New funtion.
1507 (result_set_caret): Likewise.
1508 (result_shift_caret): Likewise.
1509 (result_previous_char_is_space): Likewise.
1510 (substitution_start): Use caret position.
1511 (substitution_add): Likewise.
1512 (demangling_new): Initialize caret position.
1513 (demangle_encoding): Use caret position.
ec255163 1514 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 1515 (demangle_type_ptr): Use switch statement. Handle pointers to
1516 arrays. Don't use result_append_space. Use caret position.
1517 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 1518 call to demangle_array_type.
1519 (demangle_array_type): Add parameter to handle pointers to arrays.
1520
a4e59c31 15212000-10-01 Mark Mitchell <mark@codesourcery.com>
1522
1523 * splay-tree.c (splay_tree_insert): Fix formatting.
1524
e41f0d80 15252000-09-16 Mark Mitchell <mark@codesourcery.com>
1526
1527 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1528
83d86ada 15292000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1530
1531 * splay-tree.c: #include <stdio.h>.
1532
78631810 15332000-09-14 Hans-Peter Nilsson <hp@axis.com>
1534
1535 * testsuite/demangle-expected: Add two tests for anonymous
1536 namespaces.
1537 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1538
508f18c8 15392000-09-10 Mark Mitchell <mark@codesourcery.com>
1540
1541 * splay-tree.c (splay_tree_predecessor): New function.
1542 (splay_tree_successor): Likewise.
1543
1a2d2193 15442000-09-10 Hans-Peter Nilsson <hp@axis.com>
1545
1546 * testsuite/demangle-expected: Add four tests for type_info
1547 mangling.
1a2d2193 1548 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1549 for a non-template non-qualified type_info function or node.
1550
09656987 15512000-09-08 Alex Samuel <samuel@codesourcery.com>
1552
1553 * cp-demangle.c: Fix copyright banner.
1554
7cc2d24b 15552000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1556
1557 * md5.c: #include "ansidecl.h".
1558
b83e8722 15592000-09-06 Alex Samuel <samuel@codesourcery.com>
1560
1561 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1562 (demangle_type): Handle substitution candidates correctly in the
1563 face of special substitutions.
1564
cf70278e 15652000-09-05 Alex Samuel <samuel@codesourcery.com>
1566
1567 * cp-demangle.c (demangle_encoding): Rename variable.
1568 (demangle_name): Rename parameter. Handle return type
1569 suppression.
1570 (demangle_nested_name): Rename parameter.
1571 (demangle_prefix): Likewise. Change return type suppression.
1572 (demangle_unqualified_name): Add parameter. Flag constructors and
1573 conversion operators.
1574 (demangle_special_name): Fix comment.
1575 (demangle_type): Rename variable.
1576 (demangle_bare_function_type): Check for missing return type and
ec255163 1577 parameter.
cf70278e 1578 (demangle_class_enum_type): Rename parameter.
1579 (demangle_discriminator): Fix misspelling in comment.
1580
4aabc076 15812000-08-31 DJ Delorie <dj@redhat.com>
1582
1583 * configure.in (Cygwin): special case cygwin only when we're
1584 building cygwin, not when we're hosting cygwin.
1585
804ddfd1 15862000-09-04 Alex Samuel <samuel@codesourcery.com>
1587
1588 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 1589 <expression>.
1590
e015a852 15912000-09-04 Alex Samuel <samuel@codesourcery.com>
1592
1593 * cp-demangle.c (demangle_type_ptr): Increment position past
1594 pointer and reference characters.
1595
2b6805b4 15962000-09-04 Alex Samuel <samuel@codesourcery.com>
1597
1598 * cp-demangle.c (demangle_nv_offset): New function.
1599 (demangle_v_offset): Likewise.
1600 (demangle_call_offset): Likewise.
1601 (demangle_special_name): Update thunk demangling to comply with
1602 ABI changes.
ec255163 1603
40e00cb0 16042000-09-03 Alex Samuel <samuel@codesourcery.com>
1605
1606 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1607 (substitution_def): Remove template_parm_number.
1608 (NOT_TEMPLATE_PARM): Remove.
1609 (result_insert_string): New macro.
1610 (result_insert): Likewise.
1611 (result_insert_char): Likewise.
1612 (substitution_add): Remove last parameter. Don't store template
ec255163 1613 parm number.
40e00cb0 1614 (BFT_NO_RETURN_TYPE): Define as NULL.
1615 (demangle_encoding): Adjust call to demangle_bare_function_type.
1616 (demangle_name): Adjust substitution. Adjust call to
ec255163 1617 substitution_add.
40e00cb0 1618 (demangle_prefix): Adjust call to substitution_add.
1619 (demangle_identifier): Handle anonymous namespaces.
1620 (demangle_operator_name): Change demangling of vendor-extended
1621 operator to match ABI changes.
1622 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 1623 substitutions here.
40e00cb0 1624 (demangle_type): Adjust calls to demangle_template_param,
1625 substitution_add, and demangle_type_ptr. Fix substitution of
1626 templated types.
1627 (demangle_function_type): Change parameter to a pointer.
1628 (demangle_bare_function_type): Likewise. Adjust insertion point.
1629 (demangle_template_param): Remove last parameter.
1630 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 1631 demangle_template_param.
40e00cb0 1632 (is_mangled_char): Accept `$' and `.'.
1633 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1634 * dyn-string.c (dyn_string_insert_char): New function.
1635
01f404a2 16362000-08-31 Hans-Peter Nilsson <hp@axis.com>
1637
1638 * testsuite/demangle-expected: Add nine tests for
1639 underscore-after-number followed by five tests for name-signature
1640 delimiter.
1641
d74245d4 16422000-08-28 Richard Henderson <rth@cygnus.com>
1643
1644 * Makefile.in (md5.o): Depend on config.h.
1645
19f716e5 16462000-08-28 Jason Merrill <jason@redhat.com>
1647
1648 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1649 (CFILES): Add md5.c.
1650 * md5.c: New file.
1651
f8aeab41 16522000-08-27 Alex Samuel <samuel@codesourcery.com>
1653
1654 * cp-demangle.c (demangle_name): Initialize template_p in local
1655 name case. Don't re-add substitutions as candidates.
1656 (demangle_nested_name): Use <unqualified-name>.
1657 (demangle_prefix): Likewise. Don't add template names as
1658 substitution candidates twice, or re-add a substitution or the
1659 last prefix component.
1660 (demangle_local_name): Adjust output format.
1661
62c2feed 16622000-08-25 Alex Samuel <samuel@codesourcery.com>
1663
1664 * cp-demangle.c (result_add_separated_char): Change parameter to
1665 int.
1666 (substitution_add): Don't check for duplicates. Check if
1667 previously allocated size is zero.
1668 (demangle_name): Remove duplicate check for std substitution.
1669 Clear template flag appropriately.
1670 (demangle_prefix): Remove argument to demangle_substitution.
1671 Don't check that template flag is already set.
1672 (demangle_operator_name): Add pt operator.
1673 (demangle_type): Don't treat r as built-in type. Remove argument
1674 to demangle_substitution. Fix substitution candidate mechanics.
1675 Handle <template-template-parm>s. Improve comments.
ec255163 1676 (demangle_template_param): Don't handle template arg lists here.
62c2feed 1677 (demangle_substitution): Remove parameter.
1678 (print_usage): Remove extra fprintf option.
1679
ee1d4c3d 16802000-08-24 Greg McGary <greg@mcgary.org>
1681
1682 * libiberty/random.c (end_ptr): Revert previous change.
1683
f0bff53d 16842000-08-24 Greg McGary <greg@mcgary.org>
1685
1686 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1687 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1688 * libiberty/random.c (end_ptr): Likewise.
1689
c1b316c0 16902000-08-23 Alex Samuel <samuel@codesourcery.com>
1691
1692 * cp-demangle.c (result_close_template_list): Remove function.
1693 (result_add_separated_char): New function.
1694 (result_open_template_list): New macro.
1695 (result_close_template_list): Likewise.
1696 (demangle_prefix): Don't set template_p if the
1697 prefix ends with a ctor name.
1698 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1699 (demangle_type): Check for template args after substitution.
1700 (demangle_template_args): Use result_open_template_list.
ec255163 1701
385b48fc 17022000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1703
1704 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1705
ec255163 17062000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 1707
1708 * config/mh-openedition.h: Added -DLE370 definition.
1709
8fc0efd2 17102000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1711
1712 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1713 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1714 Cast program to 'char *' in errmsg_arg assignment.
1715 (PWAIT_ERROR): Define.
1716 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1717 to DJGPP's WIF* macros.
1718
a1d4f79a 17192000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1720 Jeff Law <law@cygnus.com>
1721
98b4c197 1722 * getcwd.c: Include string.h, stdlib.h for prototypes
1723
a1d4f79a 1724 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 1725 * rename.c: Include config.h, unistd.h
1726 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 1727
01f404a2 17282000-07-24 Hans-Peter Nilsson <hp@axis.com>
1729
1730 * cplus-dem.c (work_stuff_copy_to_from): New.
1731 (delete_non_B_K_work_stuff): New.
1732 (delete_work_stuff): New.
1733 (mop_up): Break out work_stuff partly destruction to
1734 delete_non_B_K_work_stuff.
1735 (iterate_demangle_function): New.
1736 (demangle_prefix): Call iterate_demangle_function instead of
1737 demangle_function_name. Leave handling of name-signature
1738 __-delimiters to iterate_demangle_function.
1739 (demangle_integral_value): Strip an optional
1740 following underscore cautiously. Handle negative numbers.
1741
f2e5a608 17422000-07-24 Daniel Berlin <dberlin@redhat.com>
1743
ec255163 1744 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 1745 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1746
65bcf503 17472000-07-21 Alex Samuel <samuel@codesourcery.com>
1748
1749 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1750 allocating ctor mangling.
1751 (demangle_array_type): Handle empty and non-constant array length.
1752
68e6b6e1 17532000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 1754 Jeff Law <law@cygnus.com>
1755
1a163ca8 1756 * configure.in (AC_CHECK_HEADERS): Add time.h.
1757 (AC_HEADER_TIME): Add check.
1758 * configure, config.in: Regenerate.
1759 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1760
a451eef0 1761 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1762 * configure, config.in: Regenerate.
1763 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1764 * strtol.c, strtoul.c: #include "config.h". Portably #include
1765 <limits.h> and/or <sys/param.h>.
1766 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 1767
fb758229 1768 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1769 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1770 * configure, config.in: Regenerate.
1771 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1772
68e6b6e1 1773 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1774
ad46fec4 17752000-07-21 Mike Stump <mrs@wrs.com>
1776
1777 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 1778 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 1779
bb37062f 17802000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1781
1782 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1783
1784 * setenv.c (setenv): Initialize variable `ep'.
1785
1786 * sigsetmask.c (abort): Prototype.
1787
1788 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1789 __STDC__ for stdarg.h include.
1790 (int_vasprintf): Prototype.
1791 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1792 definition. Cast `global_total_width' in comparison.
1793 (main): Prototype. Return a value.
1794
1795 * vfork.c (fork): Prototype.
1796
1797 * xexit.c: Include config.h.
1798
6cb730c2 17992000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1800
1801 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1802 and print it with %u.
1803
e42d7fe1 18042000-07-17 Hans-Peter Nilsson <hp@axis.com>
1805
1806 * testsuite/regress-demangle (failed test): Show result and
1807 expected output.
1808
04ef60ef 18092000-07-07 Andrew Haley <aph@cygnus.com>
1810
1811 * cplus-dem.c (main): fflush() after emitting last char before
1812 waiting for input.
1813
b7f68aff 18142000-06-28 Alex Samuel <samuel@codesourcery.com>
1815
1816 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1817 (demangle_name): Handle <substitution> followed by
1818 <unqualified-template-name>.
1819 (demangle_type): Follow special substitutions with
1820 <class-enum-type>
1821 (demangle_subtitution): Set template_p for special substitutions.
1822 (main): Fix typos.
ec255163 1823
597f928d 18242000-06-27 Alex Samuel <samuel@codesourcery.com>
1825
1826 * cp-demangle.c (demangle_special_name): Swap base and derived
1827 class when demangling construction vtables.
1828
140d75d7 18292000-06-21 Alex Samuel <samuel@codesourcery.com>
1830
1831 * cp-demangle.c: Don't include ctype.h.
1832 (IS_DIGIT): New macro.
1833 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1834 instead of isdigit and isalpanum.
1835 (demangling_def): Make name and next const pointers.
1836 (STATUS_ALLOCATION_FAILED): New status code.
1837 (dyn_string_append_space): Handle failure in
1838 dyn_string_append_char.
1839 (int_to_dyn_string): Likewise. Change return value to status_t.
1840 (string_list_new): Handle failure of dyn_string_init.
1841 (result_close_template_list): Change return type to status_t.
1842 Handle failure in dyn_string_append.
1843 (result_push): Change return value to status_t. Handle failure in
1844 string_list_new. Handle failure of result_push throughout.
1845 (substitution_add): Change return value to status_t. Handle
1846 dyn_string failures. Handle failure of substitution_add
1847 throughout.
1848 (template_arg_list_new): Return NULL on allocation failure.
1849 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1850 Handle error result throughout.
1851 (result_append): Likewise.
1852 (result_append_char): Likewise.
1853 (result_append_space): Likewise.
1854 (demangling_new): Make argument a const pointer. Handle
1855 allocation failures.
1856 (demangle_template_args): Handle failure in template_arg_list_new
1857 and result_close_template_list.
1858 (demangle_discriminator): Return if int_to_dyn_string fails.
1859 (cp_demangle): Likewise.
1860 (cp_demangle_type): New function.
1861 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1862 memory allocation failure.
1863 (main): Likewise.
1864 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1865 IN_LIBGCC2.
1866 (dyn_string_init): Change return value to int. Handle
1867 RETURN_ON_ALLOCATION_FAILURE case.
1868 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1869 (dyn_string_release): Delete the dyn_string.
1870 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1871 (dyn_string_copy): Change return type to int.
1872 (dyn_string_copy_cstr): Likewise.
1873 (dyn_string_prepend): Likewise.
1874 (dyn_string_prepend_cstr): Likewise.
1875 (dyn_string_insert): Likewise.
1876 (dyn_string_insert_cstr): Likewise.
1877 (dyn_string_append): Likewise.
1878 (dyn_string_append_cstr): Likewise.
1879 (dyn_string_append_char): Likewise.
1880 (dyn_string_substring): Likewise.
ec255163 1881
210aba33 18822000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1883
1884 * cp-demangle.c (demangle_operator_name): Add spaces before
1885 names beginning with a letter: delete, delete[], new, new[],
1886 sizeof.
1887 (demangle_special_name): Handle TF <type> and TJ <type>.
1888
0b4450c1 1889Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1890
1891 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1892
e5d6924a 1893Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1894
1895 * cp-demangle.c (stdio.h): File included unconditionaly.
1896 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1897 * dyn-string.c (stdio.h): File included.
1898 * partition.c (partition_print): No `&' needed to take the address of
1899 a function.
1900
da8bd873 19012000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1902
1903 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 1904
da8bd873 1905 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1906
1907 * cp-demangle.c (demangle_char): Change parameter from char to int.
1908 (demangle_expression, demangle_expr_primary): Remove extra
1909 semi-colon in prototype.
1910
1911 * dyn-string.c (dyn_string_append_char): Change parameter from
1912 char to int.
1913
1914 * memcmp.c (memcmp): Constify.
1915
1916 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1917 __extension__.
1918
1919 * partition.c (elem_compare): Prototype. Don't cast away
1920 const-ness.
1921
1922 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 1923
4b7bc488 19242000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1925
1926 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1927
1928 * cp-demangle.c: Include demangle.h.
1929 (template_arg_list_new): DeANSIfy.
1930 (cp_demangle): Make static and add prototype.
1931 (operator_code, operators): Constify.
1932 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1933
7ae7b54c 19342000-06-05 Alex Samuel <samuel@codesourcery.com>
1935
1936 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1937 unsigned char.
1938 (demangle_unqualified_name): Likewise.
1939 (demangle_number_literally): Likewise.
1940 (demangle_type): Likewise.
1941 (demangle_substitution): Likewise.
1942 (is_mangled_char): Likewise, for isalnum.
1943
168d63e5 19442000-06-04 Alex Samuel <samuel@codesourcery.com>
1945
1946 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1947 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1948 (cp-demangle.o): New dependency.
1949 (dyn-string.o): Likewise.
1950
1951 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1952
1953 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1954 demangler.
1955 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1956 demangling mode.
1957 (gnu_new_abi_symbol_characters): New function.
1958 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1959 file.
1960 * cp-demangle.c: New file.
ec255163 1961
b5495c1d 1962Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1963
1964 * floatformat.c: Add name to each floatformat field.
1965
8fab1737 1966Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1967
1968 * Makefile.in (objalloc.o): Depend on config.h
1969
317ab997 19702000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1971
1972 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
1973 if HAVE_STRING_H.
1974 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1975 * objalloc.c: Include config.h. Include stdlib.h and don't
1976 declare malloc or free if HAVE_STDLIB_H.
1977 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1978 else declare malloc without prototype. Include string.h if
1979 HAVE_STRING_H, else declare memset without prototype. Don't
1980 include stddef.h.
1981
874478ba 19822000-05-23 Mike Stump <mrs@wrs.com>
1983
1984 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
9f21bac8 1985 -j3.
874478ba 1986
55de1520 19872000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1988
1989 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1990
e51b357b 19912000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1992
ec255163 1993 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 1994 probably zero, also eliminate a warning on alpha.
1995
9e362499 19962000-05-15 David Edelsohn <edelsohn@gnu.org>
1997
e390e838 1998 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 1999 on $(enable_shared).
2000
06c6487f 20012000-05-10 Jakub Jelinek <jakub@redhat.com>
2002
2003 * config.table: Use mh-sparcpic for sparc*-*-*.
2004
0baf89fb 20052000-05-08 Nick Clifton <nickc@cygnus.com>
2006
2007 * Makefile.in (CFILES): Add strncmp.c.
2008 (NEEDED): Add strncmp.
2009
59f72e4d 20102000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2011
2012 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2013 Cast the arguments to `islower' to `unsigned char'.
2014 (print_demangler_list): Prototype.
2015
fb0c90ed 2016Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2017
2018 * sort.c (UCHAR_MAX): Provide fallback definition.
2019
167a5f18 20202000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2021
2022 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2023 SUBDIRS.
2024
6f572555 20252000-04-28 Kenneth Block <block@zk3.dec.com>
2026 Jason Merrill <jason@casey.cygnus.com>
2027
ec255163 2028 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2029 (cplus_demangle_set_style): New function for setting style.
2030 (cplus_demangle_name_to_style): New function to translate name.
6f572555 2031
b3524c8f 20322000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2033
2034 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2035
2036 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2037 (libiberty_AC_FUNC_STRNCMP): Invoke.
2038
2039 * strncmp.c: New file.
2040
a5f725a3 2041Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2042
2043 * hashtab.c (htab_expand): Add prototype.
2044 (find_empty_slot_for_expand): Likewise.
2045
8afd4145 20462000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2047
2048 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2049 match prototype.
2050 (htab_expand): Cast the return value of xcalloc.
2051
c9dfb8ae 20522000-04-24 Mark Mitchell <mark@codesourcery.com>
2053
2054 * hashtab.c (hash_pointer): New function.
2055 (eq_pointer): Likewise.
2056 (htab_hash_pointer): New variable.
2057 (htab_eq_pointer): Likewise.
2058
85993fc6 20592000-04-23 Mark Mitchell <mark@codesourcery.com>
2060
9517f453 2061 * sort.c (sort_pointers): Fix endianness bugs.
2062
85993fc6 2063 * sort.c: New file.
2064 * Makefile.in (CFILES): Add sort.c
2065 (REQUIRED_OFILES): Add sort.o.
2066 (sort.o): New target.
2067
c9b2f47c 20682000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2069
2070 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2071 4.3BSD systems.
2072
2b3dbc20 2073Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2074
2075 * hashtab.c: Various minor cleanups.
2076 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2077 (htab_find_slot): Likewise.
2078
6ea8a864 20792000-04-16 Dave Pitts <dpitts@cozx.com>
2080
2081 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 2082
105211e5 20832000-04-05 Richard Henderson <rth@cygnus.com>
2084
2085 * splay-tree.c (splay_tree_remove): New.
2086
7669680f 20872000-03-30 Mark Mitchell <mark@codesourcery.com>
2088
2089 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2090 codes.
2091 (htab_find_with_hash): Likewise.
2092 (htab_find_slot_with_hash): Likewise.
ec255163 2093
07c797e3 20942000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2095
2096 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2097 unless it will be used. Rearrange loop for better
2098 optimization.
2099 (higher_prime_number): Add static prototype.
2100
8ef1b8d1 2101Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2102
2103 * Makefile.in (partition.o): Depend on config.h
2104
ed26da85 21052000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2106
2107 * hashtab.c (find_empty_slot_for_expand): New function.
2108 (htab_expand): Use it instead of htab_find_slot.
2109 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2110 argument HASH.
2111 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2112 (htab_find): New wrapper function.
2113 (htab_find_slot): Likewise.
2114 (htab_traverse): Pass slot, not entry, to called function.
2115
dadde703 21162000-03-09 Alex Samuel <samuel@codesourcery.com>
2117
2118 * Makefile.in (CFILES): Add partition.c.
2119 (REQUIRED_OFILES): Add partition.o.
2120 (partition.o): New rule.
2121 * partition.c: New file.
ec255163 2122
3fdd387a 21232000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2124
2125 * hashtab.c (htab_create): Set del_f.
2126 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2127 Use it.
2128
07c967f9 21292000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2130
2131 * hashtab.c: Remove debugging variables (all_searches,
2132 all_collisions, all_expansions). Delete
2133 all_hash_table_collisions.
2134 (create_hash_table, delete_hash_table, empty_hash_table,
2135 find_hash_table_entry, remove_element_from_hash_table_entry,
2136 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2137 hash_table_elements_number, hash_table_collisions): Rename to:
2138 htab_create, htab_delete, htab_empty, htab_find_slot,
2139 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2140 htab_elements, htab_collisions.
2141 (htab_find): New function, handles common case where you don't
2142 plan to add or delete an entry.
2143 (htab_expand): Don't create a whole new table, just a new
2144 entry vector.
2145 (htab_find_slot): Simplify logic.
2146
1f33a375 21471999-08-03 Ian Lance Taylor <ian@zembu.com>
2148
2149 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2150 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2151
2152 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2153 $(TARGETLIB)n so it works on MSDOS.
2154 (install_to_tooldir): Likewise.
2155
21561999-07-21 Ian Lance Taylor <ian@zembu.com>
2157
2158 From Mark Elbrecht:
2159 * makefile.dos: Remove; obsolete.
2160 * configure.bat: Remove; obsolete.
2161
21621999-07-11 Ian Lance Taylor <ian@zembu.com>
2163
2164 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2165 warning.
2166
b99e5aef 21672000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2168
2169 * pexecute.c: Conditionally include string.h.
07c967f9 2170 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 2171
6d93ad38 21722000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2173
2174 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2175 we're using gcc.
2176
2177 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2178
59dfb43e 21791999-12-27 Geoff Keating <geoffk@cygnus.com>
2180
2181 * vasprintf.c (int_vasprintf): Don't re-read the format character
2182 as this mishandles strings like '%%s'.
2183
b04bbebb 21841999-12-05 Mark Mitchell <mark@codesourcery.com>
2185
2186 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2187 rather than struct splay_tree_node.
2188 (splay_tree_insert): Use struct splay_tree_s rather than struct
2189 splay_tree.
2190
d7f8de75 2191Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2192
2193 * hashtab.c (sys/types.h): File included.
2194
7202ac7d 21951999-11-22 Jason Merrill <jason@casey.cygnus.com>
2196
2197 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2198 BSD license, pursuant with
2199
2200 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2201
bd41a79e 2202Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2203
2204 * hashtab.c: Include stdio.h.
2205
b77d3fd0 2206Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2207
2208 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2209
1b4391fe 2210Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2211
2212 * xstrdup (sys/types.h): Include this file.
2213
4bc57096 22141999-10-28 Nathan Sidwell <nathan@acm.org>
2215
2216 * Makefile.in (SUBDIRS): New macro.
2217 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2218 avoid multiple subdirectory cleaning.
2219 (*-subdir): Use SUBDIRS.
2220
9087cad2 22211999-10-25 Jim Kingdon <http://developer.redhat.com/>
2222
2223 * cplus-dem.c: Move declarations of standard_symbol_characters and
2224 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2225 warnings.
2226
21a7d507 22271999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2228
2229 * hashtab.c (find_hash_table_entry): When returning a
2230 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2231 (clear_hash_table_slot): New function which deletes an entry
2232 by its position in the table, not its value.
2233 (traverse_hash_table): New function which calls a hook
2234 function for every live entry in the table.
2235
42c870f1 22361999-10-19 Mark Mitchell <mark@codesourcery.com>
2237
2238 * cplus-dem.c (INTBUF_SIZE): New macro.
2239 (string_append_template_idx): New function.
2240 (demangle_expression): Likewise.
2241 (demangle_integral_value): Use it.
2242 (demangle_real_value): New function, split out from ...
2243 (demangle_template_value_parm): ... here. Use
2244 string_append_template_idx. Use demangle_real_value.
2245 (demangle_template): Use string_append_template_idx.
2246 (demangle_qualified): Use consume_count_with_underscores.
2247 (get_count): Tweak formatting.
2248 (do_type): Use string_append_template_idx.
07c967f9 2249
33b090eb 22501999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2251
2252 * calloc.c: Add a public domain notice.
2253
9879c2ce 2254Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2255
2256 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2257
5da6c26f 2258Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2259
2260 * Makefile.in (CFILES): Add hashtab.c
2261 (REQUIRED_OFILES): Add hashtab.o
2262 (hashtab.o): Add dependencies.
2263 * hashtab.c: New file
2264
be42b79e 2265Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2266
2267 * basename.c (DIR_SEPARATOR): New macro.
2268 (DIR_SEPARATOR_2): Likewise.
2269 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2270 (IS_DIR_SEPARATOR): Likewise.
2271 (main): Handle MSDOS style pathname.
2272
6c65e8d7 22731999-10-11 Mark Mitchell <mark@codesourcery.com>
2274
2275 * cplus-dem.c (do_type): Handle pointer to member types whose
2276 enclosing classes have namespace scope.
2277
278929f3 2278Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2279
2280 * config.table: Provide a backup shell for executing move-if-change.
2281
a7599ac8 22821999-10-02 Mark Mitchell <mark@codesourcery.com>
2283
2284 * xmalloc.c (xmalloc): Fix spelling error.
2285 (xcalloc, xrealloc): Likewise.
2286
4d84eafd 22871999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2288
2289 * cplus-dem.c (fancy_abort, demangle_integral_value,
2290 demangle_arm_hp_template, recursively_demangle,
2291 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2292 (program_name, program_version, fatal): Constify a char*.
2293 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2294 (main): Call return, not exit.
2295
8f376364 22961999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2297
2298 * choose-temp.c: Remove obsolete comment about gcc.
2299 (make_temp_file): Constify a char*.
2300
3a4fff76 2301Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2302
2303 * xmemdup.c: Include sys/types.h.
2304
7570bccb 23051999-09-07 Jeff Garzik <jgarzik@pobox.com>
2306
2307 * xmemdup.c: New xmemdup function.
2308 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2309
b50c7be3 2310Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2311
07c967f9 2312 * config.table: Add openedition target.
b50c7be3 2313 * config/mh-openedition: New file.
2314
fd0c1d22 2315Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2316
2317 * pexecute.c (pexecute): Fill in temp_base when needed.
2318
be342bf0 23191999-08-31 Richard Henderson <rth@cygnus.com>
2320
2321 * getpwd.c: Check HAVE_GETCWD before defining it away.
2322
71774460 23231999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2324
2325 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2326 (REQUIRED_OFILES): Add getpwd.o.
2327 (getpwd.o): Add target.
2328
2329 * configure.in (AC_PREREQ): Bump to 2.13.
2330 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2331
2332 * getpwd.c: New file, moved here from gcc.
2333
ac126d82 23341999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2335
2336 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2337 comparing against a signed quantity.
2338 (arm_special): Likewise.
2339 (demangle_fund_type): Likewise.
2340 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 2341 ATTRIBUTE_UNUSED.
ac126d82 2342 (main): Constify variable `valid_symbols'.
2343
4f3b4661 2344Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2345
2346 * strtoul.c (strtoul): Add parentheses around && within ||.
2347
f92ff492 2348Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2349
2350 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2351 libdir, libsubdir and tooldir.
2352
a9f46aed 23531999-08-01 Mark Mitchell <mark@codesourcery.com>
2354
2355 * splay-tree.c (splay_tree_insert): Return the new node.
2356
db081298 23571999-07-14 Richard Henderson <rth@cygnus.com>
2358
07c967f9 2359 * argv.c: Include stdlib.h and string.h instead of
db081298 2360 prototyping directly.
2361 * choose-temp.c: Conditionally include string.h.
2362
e5aa3a54 23631999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2364
2365 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2366
4ef402f7 23671999-07-11 Ian Lance Taylor <ian@zembu.com>
2368
2369 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2370 warning.
2371
d65034bd 23721999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2373
2374 * Makefile.in (needed-list): Only include stuff we actually need
2375 for libstdc++.
2376
18912799 23771999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2378
2379 * configure.in (checkfuncs): Add gettimeofday.
2380 * config.in, configure: Regenerated.
2381
d96f58b6 2382Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2383
2384 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2385 the test fails.
2386 * configure: Regenerate.
2387
4248b202 23881999-06-10 Mike Stump <mrs@wrs.com>
2389
2390 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2391 parallel builds.
2392
3c243ded 23931999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2394
2395 * putenv.c: Include ansidecl.h to define `const'.
2396 * setenv.c: Likewise.
2397
654c70ae 2398Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2399
34f75864 2400 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2401 * configure.in (funcs): Add putenv and setenv.
2402 (AC_CHECK_FUNCS): Check for putenv and setenv.
2403 * configure: Rebuilt.
2404 * putenv.c setenv.c: New files.
2405
654c70ae 2406 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2407 bytes of space using malloc.
2408
41980611 2409Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2410
2411 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2412 the *mangled pointer beyond the end of the string. Clean up code to
2413 match prevailing coding style.
2414
08b8ada9 24151999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2416
2417 * tmpnam.c (L_tmpnam): Fix typo.
2418
2fb1c6e9 2419Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2420
2421 * cplus-dem.c (standard_symbol_characters): Renamed from
2422 standard_symbol_alphabet. No longer modify TABLE.
2423 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2424 modify TABLE.
2425 (main): Corresponding changes. Use strchr to determine if a
2426 character is valid.
2427
25398e41 24281999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2429
2430 * cplus-dem.c (main): Use table lookup to distinguish identifier
2431 characters from non-identifier characters.
2432 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2433
29723d26 2434Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2435
2436 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2437 * getruntime.c: Only attempt to include sys/resource.h and
2438 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2439 are defined.
2440
dde96550 2441Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2442
2443 * configure.in (alloca detection): Handle alloca directly for interix.
2444 * configure: Rebuilt.
2445
e98ba651 2446Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2447
2448 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2449
3460a017 24501999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2451
2452 Fix from Dale Hawkins:
07c967f9 2453 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 2454 reallocated properly if we use it again.
2455
2456 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2457 stricter about syntax. Always null-terminate string.
2458
b01c0955 2459Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2460
2461 * configure.in (checkfuncs): Check for sbrk.
2462 * config.in: Rebuilt.
2463 * configure: Likewise.
2464 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2465
87c2e884 24661999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2467
2468 Fix from Marcus Daniels:
2469 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2470 identifier looking for another underscore.
2471
16b8e80f 2472Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2473
2474 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2475 * xmalloc.c: Likewise.
2476 (xcalloc): UWIN has sbrk.
2477 (xrealloc): Fix guard macro.
2478
4d0cfb7e 24791999-04-11 Richard Henderson <rth@cygnus.com>
2480
2481 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2482 or <alloca.h>.
2483 * clock.c (GNU_HZ): New definition.
2484 (clock): Use it.
2485 * getruntime.c: Likewise.
2486
2487 * config.table: Use mh-beos.
2488 * config/mh-beos: New file.
2489
0dc64970 24901999-04-11 Mark Mitchell <mark@codesourcery.com>
2491
2492 * cplus-dem.c (demangle_template_value_parm): Handle
2493 pointers-to-members.
2494 (do_type): Handle template parameters as qualifiers.
2495
9fec6063 24961999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2497
2498 * cplus-dem.c: Attempt to handle overflows in counts with some
2499 semblance of grace.
2500 (consume_count): Detect overflows. Return -1 to indicate errors,
2501 instead of zero.
2502 (demangle_template_value_parm, demangle_template): Handle change
2503 to consume_count's return convention.
2504
715f424c 25051999-04-05 Tom Tromey <tromey@cygnus.com>
2506
2507 * testsuite/regress-demangle: New file.
2508 * testsuite/demangle-expected: New file.
2509
2510 * Makefile.in (all, check, installcheck, info, install-info,
2511 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2512 distclean, maintainer-clean, realclean): Depend on corresponding
2513 `-subdir' target.
2514 (all-subdir check-subdir installcheck-subdir info-subdir
2515 install-info-subdir clean-info-subdir dvi-subdir
2516 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2517 distclean-subdir maintainer-clean-subdir): New target.
2518 * testsuite/Makefile.in: New file.
2519 * configure: Rebuilt.
2520 * configure.in: Create testsuite/Makefile.
2521
71c5948c 25221999-04-02 Mark Mitchell <mark@codesourcery.com>
2523
2524 * splay-tree.h (splay_tree_compare_pointers): Define.
2525
d1264606 25261999-03-30 Mark Mitchell <mark@codesourcery.com>
2527
2528 * splay-tree.c (splay_tree_compare_ints): Define.
2529
6fd618e7 25301999-03-30 Tom Tromey <tromey@cygnus.com>
2531
2532 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2533 don't advance input pointer.
2534 (demangle_class_name): If consume_count didn't find a count, do
2535 nothing. Don't bother with `strlen' sanity check; consume_count
2536 does it for us.
2537
bdaa26ad 25381999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2539
2540 From Art Haas <ahaas@neosoft.com>:
2541 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2542 when doing arm or hp style.
2543 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 2544
d267f778 2545Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2546
2547 * pexecute.c (__CYGWIN32__): Rename to
2548 (__CYGWIN__): this.
2549 * xmalloc.c: Likewise.
2550
2551 Changes to support i386-pc-uwin.
2552 * configure.in (*-*-uwin*): Workaround for vfork bug.
2553 * configure: Regenerate.
2554 * pexecute.c (pexecute): Be like standard Unix.
2555 (pwait): Likewise.
2556 * xmalloc.c (first_break): Define.
2557 (xmalloc_set_program_name): Use.
2558 (xmalloc): Use.
2559
90405950 2560Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2561
2562 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2563
bdaa26ad 2564Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2565
2566 * config.table: Check cygwin*, not cygwin32*.
2567
e6ed8194 2568Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2569
2570 * Makefile.in: Change mkstemp -> mkstemps.
2571
301e59c9 2572Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2573
2574 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2575 * configure.in (funcs): Check for and conditionally add mkstemps to
2576 the list of functions libiberty will provide.
2577 * configure: Rebuilt.
07c967f9 2578
89e305f9 2579Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2580
07c967f9 2581 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 2582 platforms that don't have HZ.
2583 * getruntime.c (HZ): Likewise.
2584
ecfe64e7 2585Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2586
2587 * Makefile.in (xstrdup.o): Depend on config.h.
2588
2e5e2114 2589Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2590
2591 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2592 freeing it.
2593
6aa62a59 2594Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2595
2596 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2597
bdaa26ad 2598Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2599
2600 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2601 splay-tree.o.
2602
26031999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2604
2605 * configure.in: Require autoconf 2.12.1 or higher.
2606
9e1ed734 26071998-12-30 Michael Meissner <meissner@cygnus.com>
2608
2609 * random.c (NULL): Don't redefine NULL if it is already defined.
2610
7c8c70e9 2611Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2612
2613 * argv.c (buildargv): Cast the result of alloca in assignment.
2614
2615 * choose-temp.c: Include stdlib.h.
2e5e2114 2616
7c8c70e9 2617 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
9f21bac8 2618 (snarf_numeric_literal): Constify first parameter.
2619 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2620 int, not a char.
7c8c70e9 2621 (demangle_qualifier): Likewise.
2622 (demangle_signature): Cast the argument of a ctype function to
2623 unsigned char.
2624 (arm_pt): Add parens around assignment used as truth value.
2625 (demangle_arm_hp_template): Constify variable `args'.
2626 (do_hpacc_template_const_value): Cast the argument of a ctype
2627 function to unsigned char.
2628 (do_hpacc_template_literal): Remove unused variable `i'.
2629 (snarf_numeric_literal): Constify parameter `args'.
2630 Cast the argument of a ctype function to unsigned char.
2631
2632 * floatformat.c (floatformat_to_double): Add explicit braces to
9f21bac8 2633 avoid ambiguous `else'.
2e5e2114 2634
7c8c70e9 2635 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
9f21bac8 2636 `cstart' and `cend' to unsigned char. Cast the argument of macro
2637 `FOLD', which uses ctype functions, to unsigned char.
7c8c70e9 2638
2639 * objalloc.c (free): Add prototype.
2640
9070a37e 2641Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2642
2643 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2644
bdaa26ad 2645Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2646
2647 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
9f21bac8 2648 doesn't exist.
bdaa26ad 2649 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 2650
0a5a5994 2651Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2652
2653 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2654 bumping the pointer we read from. Also prepend these codes,
2655 as we do in other places.
2656
bdaa26ad 26571998-12-18 Nick Clifton <nickc@cygnus.com>
2658
2659 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2660 'const char *' in order to match its usage when calling siblings.
2661 (snarf_numeric_literal): Make first arg 'const char **' in order
2662 to match usage.
4ed77eec 2663
50cbddd6 2664Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2665
4ed77eec 2666 * choose-temp.c: Don't check IN_GCC anymore.
2667
2668 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2669 * memchr.c (memchr): Likewise.
2670 * memcpy.c (memcpy): Likewise.
2671 * memmove.c (memmove): Likewise.
2e5e2114 2672
4ed77eec 2673 * mkstemp.c: Don't check IN_GCC anymore.
2674 * pexecute.c: Likewise.
2675 * splay-tree.c: Likewise.
2e5e2114 2676
4ed77eec 2677 * strchr.c (strchr): Use `const', not `CONST'.
2678 * strrchr.c (strrchr): Likewise.
2679 * strtol.c (strtol): Likewise.
2680 * strtoul.c (strtoul): Likewise.
2681
f75dc4de 2682Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2683 Elena Zannoni <ezannoni@cygnus.com>
2684 Stan Shebs <shebs@cygnus.com>
2685 Edith Epstein <eepstein@cygnus.com>
2686 Andres MacLeod <amacleod@cygnus.com>
2687 Satish Pai <pai@apollo.hp.com>
2688
2689 * HP aCC demangling support.
2690 * cplus-dem.c
2691 (main): Remove default to HP style demangling, set to EDG
9f21bac8 2692 demangling correctly when -edg specified; set the demangling style
2693 when user specifies 'edg'. Set strip_underscore to
2694 prepends_underscore, if not HPUXHPPA. Set
2695 current_demangling_style to hp_demangling if HPUXHPPA. Set
2696 current demangling style correctly if the switch is hp. Read
2697 label correctly also in the HP style case.
f75dc4de 2698 (work_stuff): add temp_start field; add field for volatile member
9f21bac8 2699 function.
f75dc4de 2700 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
9f21bac8 2701 style for this case is the same as ARM.
f75dc4de 2702 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2703 (demangle_arm_hp_template): new function. (It was
9f21bac8 2704 demangle_arm_pt.); check and set value of temp_start field in
2705 multiple places. Also, when ceching for end of template args,
2706 check to see if at end of static member of template class.
f75dc4de 2707 (demangle_class): new local variable : save_class_name_end Don't
9f21bac8 2708 include template args in string defining class.
f75dc4de 2709 (demangle_class_name): use demangel_arm_hp_template.
2710 (demangle_function_name): handle case where demangling style is
9f21bac8 2711 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2712 Handle EDG_DEMANGLING style. Handle constructor and destructor
2713 ops for HP style.
f75dc4de 2714 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
9f21bac8 2715 styles. global destructor and constructor for HP style are same
2716 as for ARM style. Same for local variables.
f75dc4de 2717 (demangle_qualified): handle EDG_DEMANGLING style.
2718 (demangle_signature): add case for volatile member function. For
9f21bac8 2719 cases '1' - '9' : initialize the temp_start field to -1 and handle
2720 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2721 and AUTO_DEMANGLING styles. If expecting a function and managed
2722 to demangle the funct args, then handle the LUCID_DEMANGLING,
2723 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2724 class name after "Lnnn_ in HP style case. HP style too needs to
2725 forget types. _nnn is OK for HP style, so don't report failure.
f75dc4de 2726 (do_hpacc_template_const_value): new function. Handle template's
9f21bac8 2727 value param for HP/aCC.
f75dc4de 2728 (do_hpacc_template_literal): new function. Handle a template's
9f21bac8 2729 literal parameter for HP aCC.
f75dc4de 2730 (recursively_demangle): new function
2731 (snarf_numeric_literal): new function.
2732 (usage): add 'edg' to the list of demangling styles; add hp switch
9f21bac8 2733 to message.
f75dc4de 2734
a5c56042 2735Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2736
2737 * pexecute.c: Remove obsolete ifdefed cygwin code.
2738
4ae63959 2739Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2740
2741 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2742 * cplus-dem.c: Likewise. Conform to libiberty.h.
2743 * pexecute.c: Likewise.
2744 * splay-tree.c: Likewise.
2745
b41b6b67 27461998-11-25 Mike Stump <mrs@wrs.com>
2747
2748 * Makefile.in (splay-tree.o): Add config.h dependency.
2749
a1dd5bff 2750Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2751
2752 * configure.in: Use AC_PREREQ(2.12.1).
2753
d54546fb 27541998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2755
07c967f9 2756 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 2757
9fdb1080 2758Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2759
2760 * mpw.c (mpw_access): Add missing parens.
2761
1ed7db2f 2762Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2763
2764 * configure.in: Call AC_HEADER_SYS_WAIT.
2765
2766 * pexecute.c: Include sys/wait.h when !IN_GCC.
2767
bdaa26ad 2768Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2769
2770 * pexecute.c: revert back to checking old Cygwin
2771 preprocessor symbol until some time has passed.
2772
2773Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2774
2775 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2776 since it will now support similar constructs.
2777
34fa8831 2778Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2779
2780 * configure.in: Check for calloc.
2781
2782 * calloc.c: New file.
2783
2784 * xmalloc.c (xcalloc): New function.
2785
75ebb412 2786Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2787
2788 *cplus-dem.c (demangle_prefix): Use the last "__"
2789 in the mangled name when looking for the signature. This allows
2790 template names to begin with "__".
2791
5b546829 27921998-11-08 Mark Mitchell <mark@markmitchell.com>
2793
73bea962 2794 * cplus-dem.c (type_kind_t): Add tk_reference.
2795 (demangle_template_value_parm): Handle it.
2796 (do_type): Use it for references, instead of tk_pointer.
2797
5b546829 2798 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2799 not internal_cplus_demangle.
2800
0e4558d2 2801Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2802
2803 * choose-temp.c: Don't include gansidecl.h.
2804 * mkstemp.c: Likewise.
2805 * pexecute.c: Likewise.
2806
7b8b8d43 2807Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2808
07c967f9 2809 * configure.in: detect cygwin* instead of cygwin32*
2810 * configure: regenerate
7b8b8d43 2811
f9a39df1 2812Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2813
2814 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
9f21bac8 2815 whether to include config.h. Possibly include unistd.h in the
2816 !IN_GCC case. Define VFORK_STRING as a printable function call
2817 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2818 defined, include vfork.h. If VMS is defined, define vfork()
2819 appropriately. Remove vfork check on USG, we're using autoconf.
2820 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2821 locally what string to use.
f9a39df1 2822
797ba725 28231998-10-26 Mark Mitchell <mark@markmitchell.com>
2824
2825 * splay-tree.c: Tweak include directives to make sure declarations of
2826 xmalloc and free are available.
2827
3662c79b 28281998-10-25 Mark Mitchell <mark@markmitchell.com>
2829
2830 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2831 anonymous namespaces.
2e5e2114 2832
af5199c0 28331998-10-23 Mark Mitchell <mark@markmitchell.com>
2834
2835 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2836 with type_quals.
2837 (TYPE_UNQUALIFIED): New macro.
2838 (TYPE_QUAL_CONST): Likewise.
2839 (TYPE_QUAL_VOLATILE): Likewise.
2840 (TYPE_QUAL_RESTRICT): Likewise.
2841 (code_for_qualifier): New function.
2842 (qualifier_string): Likewise.
2843 (demangle_qualifier): Likewise.
2844 (internal_cplus_demangle): Use them.
2845 (demangle_signature): Likewise.
2846 (demangle_template_value_parm): Likewise.
2847 (do_type): Likewise.
2848 (demangle_fund_type)): Likewise.
3662c79b 2849
e61da89d 2850Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2851
2852 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2853 to match prototype.
2854
9a4eb61d 28551998-10-21 Mark Mitchell <mark@markmitchell.com>
2856
2857 * splay-tree.c: New file.
2858 * Makefile.in (CFILES): Add it.
2859 (REQUIRED_OFILES): Likewise.
2860 (splay-tree.o): Add dependencies.
2861
e5d3a45b 2862Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2863
2864 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2865 range of 'K' index.
2866
4350e959 2867Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2868
2869 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2870
2871 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2872 `unsigned char'.
2873 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2874 comparing against one.
2875 (cplus_mangle_opname): Likewise.
2876 (demangle_integral_value): Cast argument of ctype macro to
2877 `unsigned char'.
2878 (demangle_template_value_parm): Likewise.
2879 (demangle_template): Initialize variable `bindex'. Cast the
2880 result of `strlen' to (int) when comparing against one. Remove
2881 unused variable `start_of_value_parm'.
2882 (demangle_class_name): Cast the result of `strlen' to (int) when
2883 comparing against one.
2884 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2885 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2886 when comparing against one.
2887 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2888 (get_count): Likewise.
2889 (do_type): Likewise. Cast the result of `strlen' to (int) when
2890 comparing against one.
2891 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2892 (demangle_function_name): Cast the result of `strlen' to (int)
2893 when comparing against one.
2894
2895 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2896 comparing against one.
2897
5dfe2c03 2898Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2899
07c967f9 2900 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2901 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2902 * config.in, configure: Rebuilt.
0be6f86d 2903
5dfe2c03 2904 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2905 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2906 * config.in, configure: Rebuilt.
2907
7b8b8d43 2908Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2909
07c967f9 2910 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 2911
68b78c88 2912Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2913
2914 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2915
804ec1bf 2916Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2917
2918 * Merge egcs & devo libiberty.
2919
7a1ec54f 2920