tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimization_default_node.

* tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
	to optimization_default_node.

From-SVN: r217671
This commit is contained in:
Jan Hubicka 2014-11-17 20:35:57 +01:00 committed by Jan Hubicka
parent 56632b2773
commit 88436c83a4
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-11-17 Jan Hubicka <hubicka@ucw.cz>
* tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
to optimization_default_node.
2014-11-17 Jan Hubicka <hubicka@ucw.cz>
* cgraphunit.c (analyze_functions): Use opt_for_fn.

View File

@ -5118,6 +5118,9 @@ free_lang_data_in_decl (tree decl)
if (!DECL_FUNCTION_SPECIFIC_TARGET (decl))
DECL_FUNCTION_SPECIFIC_TARGET (decl)
= target_option_default_node;
if (!DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl))
DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl)
= optimization_default_node;
}
/* DECL_SAVED_TREE holds the GENERIC representation for DECL.