diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-16 14:40:06 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-16 14:40:06 +0000 |
commit | 82ceb8f6a88a0193971f53e0571e017f2764f7d7 (patch) | |
tree | dc560379a51d19b0978ff07480f41317ecd72bb1 | |
parent | fa422d7dbae99d0537e72d8f28ef7ae17932c4d5 (diff) | |
download | gcc-82ceb8f6a88a0193971f53e0571e017f2764f7d7.tar.gz |
PR lto/50430
* gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
error_mark_node in the DECL_INITIAL of vtable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178908 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/gimple-fold.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2b39a54a55..469aeb3a188 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-09-15 Jan Hubicka <jh@suse.cz> + + PR lto/50430 + * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on + error_mark_node in the DECL_INITIAL of vtable. + 2011-09-15 Diego Novillo <dnovillo@google.com> * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index d8da0309714..b481c4a5fa1 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -3048,7 +3048,8 @@ gimple_get_virt_method_for_binfo (HOST_WIDE_INT token, tree known_binfo) if (TREE_CODE (v) != VAR_DECL || !DECL_VIRTUAL_P (v) - || !DECL_INITIAL (v)) + || !DECL_INITIAL (v) + || DECL_INITIAL (v) == error_mark_node) return NULL_TREE; gcc_checking_assert (TREE_CODE (TREE_TYPE (v)) == ARRAY_TYPE); size = tree_low_cst (TYPE_SIZE (TREE_TYPE (TREE_TYPE (v))), 1); |