Commit 52d8a590 by Jan Hubicka Committed by Jan Hubicka

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
parent 10a3a880
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
* varasm.c (bss_initializer_p): Handle offlined ctors.
(align_variable, get_variable_align): Likewise.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment