summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4bc782694e1..5e2e1a19f79 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
* cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
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.