From: Jan Hubicka Date: Thu, 24 Jul 2014 13:52:49 +0000 (+0200) Subject: lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL as non-indexable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52d8a590f5b4d8d0c4a7ae4c9c8faeb383d4ac45;p=gcc.git lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL as non-indexable. * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL as non-indexable. From-SVN: r212992 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f902436949a..893100c81b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-24 Jan Hubicka + + * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL + as non-indexable. + 2014-07-24 Jan Hubicka PR lto/61802 diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 75332f94928..355ceeaaf08 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -139,6 +139,9 @@ tree_is_indexable (tree t) definition. */ if (TREE_CODE (t) == PARM_DECL || TREE_CODE (t) == RESULT_DECL) return variably_modified_type_p (TREE_TYPE (DECL_CONTEXT (t)), NULL_TREE); + /* IMPORTED_DECL is put into BLOCK and thus it never can be shared. */ + else if (TREE_CODE (t) == IMPORTED_DECL) + return false; else if (((TREE_CODE (t) == VAR_DECL && !TREE_STATIC (t)) || TREE_CODE (t) == TYPE_DECL || TREE_CODE (t) == CONST_DECL