diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-24 13:52:49 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-24 13:52:49 +0000 |
commit | eac6007888fa5c71fadca49fb3deb6337c932cc5 (patch) | |
tree | dc3697b83d7db2c53cdd1b17d120ba1cb61e232f /gcc/lto-streamer-out.c | |
parent | 84db6e6f79ac20fd13bd283ded8d1aeb88a4fb12 (diff) | |
download | gcc-eac6007888fa5c71fadca49fb3deb6337c932cc5.tar.gz |
* lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
as non-indexable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r-- | gcc/lto-streamer-out.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |