From 88436c83a4e5004b8b538cde59c3e9750b0bb8de Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 17 Nov 2014 20:35:57 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree.c | 3 +++ 2 files changed, 8 insertions(+) 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. -- 2.30.2