Synchronise with master FSF GCC sources

This commit is contained in:
Nick Clifton
2000-12-26 18:17:51 +00:00
parent 3c5798123f
commit ae7d06ad04

View File

@ -1,9 +1,9 @@
2000-12-16 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* safe-ctype.c: #include "ansidecl.h". * safe-ctype.c: #include "ansidecl.h".
* strtod.c: Likewise. * strtod.c: Likewise.
2000-12-16 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* strtoul.c: Include safe-ctype.h, not ctype.h. * strtoul.c: Include safe-ctype.h, not ctype.h.
@ -28,7 +28,7 @@
* cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
name before allocating the dyn_string. name before allocating the dyn_string.
2000-12-05 Jason Merrill <jason@redhat.com> 2000-12-04 Jason Merrill <jason@redhat.com>
* cp-demangle.c: s/new_abi/v3/. * cp-demangle.c: s/new_abi/v3/.
* cplus-dem.c: Likewise. * cplus-dem.c: Likewise.
@ -36,12 +36,16 @@
(cplus_demangle): Try v3 demangling if AUTO_DEMANGLING. (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
(main): Use standard symbol chars for auto_demangling. (main): Use standard symbol chars for auto_demangling.
2000-11-29 Mark Mitchell <mark@codesourcery.com> 2000-11-26 Mark Mitchell <mark@codesourcery.com>
* hashtab.c (higher_prime_number): Use a table, rather than a * hashtab.c (higher_prime_number): Use a table, rather than a
seive, to find the next prime. seive, to find the next prime.
2000-11-29 Zack Weinberg <zack@wolery.stanford.edu> 2000-11-22 H.J. Lu <hjl@gnu.org>
* cplus-dem.c (main): Handle gnat_demangling.
2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
* aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in. * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
(AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
@ -51,14 +55,11 @@
in dummy block. Preload cache variables instead of bypassing in dummy block. Preload cache variables instead of bypassing
tests, where possible. tests, where possible.
* acconfig.h: Removed. * acconfig.h: Removed.
* xmalloc.c (xmalloc_failed): New function, does error * xmalloc.c (xmalloc_failed): New function, does error
reporting on failed allocation. reporting on failed allocation.
(xmalloc, xcalloc, xrealloc): Use it. (xmalloc, xcalloc, xrealloc): Use it.
2000-11-22 H.J. Lu <hjl@gnu.org>
* cplus-dem.c (main): Handle gnat_demangling.
2000-11-21 Hans-Peter Nilsson <hp@bitrange.com> 2000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
* cplus-dem.c (cplus_demangle): Fix formatting. * cplus-dem.c (cplus_demangle): Fix formatting.
@ -71,7 +72,7 @@
* cplus-dem.c (main): Handle java_demangling. * cplus-dem.c (main): Handle java_demangling.
2000-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cplus-dem.c (grow_vect): Prototype. * cplus-dem.c (grow_vect): Prototype.
(ada_demangle): Cast the arg of ctype macros to unsigned char. (ada_demangle): Cast the arg of ctype macros to unsigned char.
@ -107,7 +108,7 @@
(htab_create, htab_expand): Correct formatting of comment before (htab_create, htab_expand): Correct formatting of comment before
function. function.
2000-10-23 Alex Samuel <samuel@codesourcery.com> 2000-10-22 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (string_list_def): Add caret_position and comments. * cp-demangle.c (string_list_def): Add caret_position and comments.
(result_caret_pos): New macro. (result_caret_pos): New macro.
@ -138,34 +139,51 @@
call to demangle_array_type. call to demangle_array_type.
(demangle_array_type): Add parameter to handle pointers to arrays. (demangle_array_type): Add parameter to handle pointers to arrays.
2000-10-11 DJ Delorie <dj@redhat.com> 2000-10-01 Mark Mitchell <mark@codesourcery.com>
Merge from gcc, all 2000-10-11 entries below
2000-10-11 Mark Mitchell <mark@codesourcery.com>
* splay-tree.c (splay_tree_insert): Fix formatting. * splay-tree.c (splay_tree_insert): Fix formatting.
2000-10-11 Mark Mitchell <mark@codesourcery.com> 2000-09-16 Mark Mitchell <mark@codesourcery.com>
* splay-tree.c (splay_tree_predecessor): Fix typo in comment. * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2000-10-11 Mark Mitchell <mark@codesourcery.com> 2000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* splay-tree.c: #include <stdio.h>.
2000-09-14 Hans-Peter Nilsson <hp@axis.com>
* testsuite/demangle-expected: Add two tests for anonymous
namespaces.
* cplus-dem.c (gnu_special): Handle anonymous namespaces.
2000-09-10 Mark Mitchell <mark@codesourcery.com>
* splay-tree.c (splay_tree_predecessor): New function. * splay-tree.c (splay_tree_predecessor): New function.
(splay_tree_successor): Likewise. (splay_tree_successor): Likewise.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-09-10 Hans-Peter Nilsson <hp@axis.com>
* testsuite/demangle-expected: Add four tests for type_info
mangling.
* cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
for a non-template non-qualified type_info function or node.
2000-09-08 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c: Fix copyright banner. * cp-demangle.c: Fix copyright banner.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* md5.c: #include "ansidecl.h".
2000-09-06 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (status_allocation_failed): Rearrange whitespace. * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
(demangle_type): Handle substitution candidates correctly in the (demangle_type): Handle substitution candidates correctly in the
face of special substitutions. face of special substitutions.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-09-05 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_encoding): Rename variable. * cp-demangle.c (demangle_encoding): Rename variable.
(demangle_name): Rename parameter. Handle return type (demangle_name): Rename parameter. Handle return type
@ -181,17 +199,22 @@
(demangle_class_enum_type): Rename parameter. (demangle_class_enum_type): Rename parameter.
(demangle_discriminator): Fix misspelling in comment. (demangle_discriminator): Fix misspelling in comment.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-08-31 DJ Delorie <dj@redhat.com>
* configure.in (Cygwin): special case cygwin only when we're
building cygwin, not when we're hosting cygwin.
2000-09-04 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_template_arg): Eat an `E' after an * cp-demangle.c (demangle_template_arg): Eat an `E' after an
<expression>. <expression>.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-09-04 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_type_ptr): Increment position past * cp-demangle.c (demangle_type_ptr): Increment position past
pointer and reference characters. pointer and reference characters.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-09-04 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_nv_offset): New function. * cp-demangle.c (demangle_nv_offset): New function.
(demangle_v_offset): Likewise. (demangle_v_offset): Likewise.
@ -199,7 +222,7 @@
(demangle_special_name): Update thunk demangling to comply with (demangle_special_name): Update thunk demangling to comply with
ABI changes. ABI changes.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-09-03 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro. * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
(substitution_def): Remove template_parm_number. (substitution_def): Remove template_parm_number.
@ -231,11 +254,23 @@
* cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'. * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
* dyn-string.c (dyn_string_insert_char): New function. * dyn-string.c (dyn_string_insert_char): New function.
2000-10-11 Richard Henderson <rth@cygnus.com> 2000-08-31 Hans-Peter Nilsson <hp@axis.com>
* testsuite/demangle-expected: Add nine tests for
underscore-after-number followed by five tests for name-signature
delimiter.
2000-08-28 Richard Henderson <rth@cygnus.com>
* Makefile.in (md5.o): Depend on config.h. * Makefile.in (md5.o): Depend on config.h.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-08-28 Jason Merrill <jason@redhat.com>
* Makefile.in (REQUIRED_OFILES): Add md5.o.
(CFILES): Add md5.c.
* md5.c: New file.
2000-08-27 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_name): Initialize template_p in local * cp-demangle.c (demangle_name): Initialize template_p in local
name case. Don't re-add substitutions as candidates. name case. Don't re-add substitutions as candidates.
@ -245,7 +280,7 @@
last prefix component. last prefix component.
(demangle_local_name): Adjust output format. (demangle_local_name): Adjust output format.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-08-25 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (result_add_separated_char): Change parameter to * cp-demangle.c (result_add_separated_char): Change parameter to
int. int.
@ -263,17 +298,17 @@
(demangle_substitution): Remove parameter. (demangle_substitution): Remove parameter.
(print_usage): Remove extra fprintf option. (print_usage): Remove extra fprintf option.
2000-10-11 Greg McGary <greg@mcgary.org> 2000-08-24 Greg McGary <greg@mcgary.org>
* libiberty/random.c (end_ptr): Revert previous change. * libiberty/random.c (end_ptr): Revert previous change.
2000-10-11 Greg McGary <greg@mcgary.org> 2000-08-24 Greg McGary <greg@mcgary.org>
* libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname, * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
demangle_expression, demangle_function_name): Use ARRAY_SIZE. demangle_expression, demangle_function_name): Use ARRAY_SIZE.
* libiberty/random.c (end_ptr): Likewise. * libiberty/random.c (end_ptr): Likewise.
2000-10-11 Alex Samuel <samuel@codesourcery.com> 2000-08-23 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (result_close_template_list): Remove function. * cp-demangle.c (result_close_template_list): Remove function.
(result_add_separated_char): New function. (result_add_separated_char): New function.
@ -285,82 +320,11 @@
(demangle_type): Check for template args after substitution. (demangle_type): Check for template args after substitution.
(demangle_template_args): Use result_open_template_list. (demangle_template_args): Use result_open_template_list.
2000-10-11 Zack Weinberg <zack@wolery.cumb.org> 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
* pexecute.c: Don't use vfork. Initialize 'pid' before retry loop. * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
2000-10-11 RodneyBrown <RodneyBrown@pmsc.com> 2000-07-26 Dave Pitts <dpitts@cozx.com>
Jeff Law <law@cygnus.com>
* getcwd.c: Include string.h, stdlib.h for prototypes
* Makefile.in (rename.o, waitpid.o): Depend on config.h
* rename.c: Include config.h, unistd.h
* waitpid.c: Include config.h, sys/wait.h
2000-10-11 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
allocating ctor mangling.
(demangle_array_type): Handle empty and non-constant array length.
2000-10-11 Mike Stump <mrs@wrs.com>
* Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
* (vasprintf.o): Add dependency for config.h in vasprintf.c.
2000-10-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
* setenv.c (setenv): Initialize variable `ep'.
* sigsetmask.c (abort): Prototype.
* vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
__STDC__ for stdarg.h include.
(int_vasprintf): Prototype.
(checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
definition. Cast `global_total_width' in comparison.
(main): Prototype. Return a value.
* vfork.c (fork): Prototype.
* xexit.c: Include config.h.
2000-09-25 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* md5.c: #include "ansidecl.h".
2000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* splay-tree.c: #include <stdio.h>.
2000-09-14 Hans-Peter Nilsson <hp@axis.com>
* testsuite/demangle-expected: Add two tests for anonymous
namespaces.
* cplus-dem.c (gnu_special): Handle anonymous namespaces.
2000-09-10 Hans-Peter Nilsson <hp@axis.com>
* testsuite/demangle-expected: Add four tests for type_info
mangling.
* cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
for a non-template non-qualified type_info function or node.
2000-08-31 DJ Delorie <dj@redhat.com>
* configure.in (Cygwin): special case cygwin only when we're
building cygwin, not when we're hosting cygwin.
2000-08-31 Hans-Peter Nilsson <hp@axis.com>
* testsuite/demangle-expected: Add nine tests for
underscore-after-number followed by five tests for name-signature
delimiter.
2000-08-28 Jason Merrill <jason@redhat.com>
* Makefile.in (REQUIRED_OFILES): Add md5.o.
(CFILES): Add md5.c.
* md5.c: New file.
2000-07-27 Dave Pitts <dpitts@cozx.com>
* config/mh-openedition.h: Added -DLE370 definition. * config/mh-openedition.h: Added -DLE370 definition.
@ -379,8 +343,8 @@
* getcwd.c: Include string.h, stdlib.h for prototypes * getcwd.c: Include string.h, stdlib.h for prototypes
* Makefile.in (rename.o, waitpid.o): Depend on config.h * Makefile.in (rename.o, waitpid.o): Depend on config.h
* rename.c: include config.h, unistd.h * rename.c: Include config.h, unistd.h
* waitpid.c: include config.h, sys/wait.h * waitpid.c: Include config.h, sys/wait.h
2000-07-24 Hans-Peter Nilsson <hp@axis.com> 2000-07-24 Hans-Peter Nilsson <hp@axis.com>
@ -401,6 +365,12 @@
* cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
if (AUTO_DEMANGLING || GNU_DEMANGLING) if (AUTO_DEMANGLING || GNU_DEMANGLING)
2000-07-21 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
allocating ctor mangling.
(demangle_array_type): Handle empty and non-constant array length.
2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
Jeff Law <law@cygnus.com> Jeff Law <law@cygnus.com>
@ -423,6 +393,30 @@
* cp-demangle.c, mkstemps.c: #include <sys/types.h>. * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2000-07-21 Mike Stump <mrs@wrs.com>
* Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
* (vasprintf.o): Add dependency for config.h in vasprintf.c.
2000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
* setenv.c (setenv): Initialize variable `ep'.
* sigsetmask.c (abort): Prototype.
* vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
__STDC__ for stdarg.h include.
(int_vasprintf): Prototype.
(checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
definition. Cast `global_total_width' in comparison.
(main): Prototype. Return a value.
* vfork.c (fork): Prototype.
* xexit.c: Include config.h.
2000-07-20 Joseph S. Myers <jsm28@cam.ac.uk> 2000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
* cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int, * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,