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
This commit is contained in:
parent
10a3a880c1
commit
52d8a590f5
@ -1,3 +1,8 @@
|
||||
2014-07-24 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
|
||||
as non-indexable.
|
||||
|
||||
2014-07-24 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
PR lto/61802
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user