Commit aa53a905 by Jan Hubicka Committed by Jan Hubicka

tree.c (free_lang_data_in_decl): Also set target/optimization flags for thunks.

	* tree.c (free_lang_data_in_decl): Also set target/optimization flags
	for thunks.

From-SVN: r236272
parent 1f6f9079
2016-05-16 Jan Hubicka <hubicka@ucw.cz>
* tree.c (free_lang_data_in_decl): Also set target/optimization flags
for thunks.
2016-05-16 Jan Hubicka <hubicka@ucw.cz>
* ipa-inline.c (report_inline_failed_reason): Look into thunks, too
(inline_small_functions): Do not look for function symbol when resetting
caches.
......
......@@ -5418,7 +5418,7 @@ free_lang_data_in_decl (tree decl)
DECL_INITIAL (decl) = error_mark_node;
}
}
if (gimple_has_body_p (decl))
if (gimple_has_body_p (decl) || (node && node->thunk.thunk_p))
{
tree t;
......
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