From: Jan Hubicka Date: Mon, 17 Nov 2014 19:35:57 +0000 (+0100) Subject: tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimizat... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88436c83a4e5004b8b538cde59c3e9750b0bb8de;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4bc782694e1..5e2e1a19f79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-17 Jan Hubicka + + * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION + to optimization_default_node. + 2014-11-17 Jan Hubicka * cgraphunit.c (analyze_functions): Use opt_for_fn. diff --git a/gcc/tree.c b/gcc/tree.c index 498d52e648c..3d1d6370fb0 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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.