aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-11-17 20:35:57 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2014-11-17 19:35:57 +0000
commit88436c83a4e5004b8b538cde59c3e9750b0bb8de (patch)
treec53aea5b9cc7f39754d6086b25b6fb669c0ed392 /gcc/tree.c
parent56632b2773bfc2ebe722fa21c796c7369acf9a9c (diff)
downloadgcc-88436c83a4e5004b8b538cde59c3e9750b0bb8de.zip
gcc-88436c83a4e5004b8b538cde59c3e9750b0bb8de.tar.gz
gcc-88436c83a4e5004b8b538cde59c3e9750b0bb8de.tar.bz2
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
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 498d52e..3d1d637 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.