aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-11-17 17:48:29 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2014-11-17 16:48:29 +0000
commit72a4a8b0bc09f7600e05887f25de2cf9422e9d43 (patch)
tree6bf656e5818095c341835964b06853b101fed760 /gcc/tree.c
parent30975f633bf33625a0e89127ac509cac22ed4837 (diff)
downloadgcc-72a4a8b0bc09f7600e05887f25de2cf9422e9d43.zip
gcc-72a4a8b0bc09f7600e05887f25de2cf9422e9d43.tar.gz
gcc-72a4a8b0bc09f7600e05887f25de2cf9422e9d43.tar.bz2
tree.c (free_lang_data_in_decl): Annotate all functio nbodies with DECL_FUNCTION_SPECIFIC_TARGET.
* tree.c (free_lang_data_in_decl): Annotate all functio nbodies with DECL_FUNCTION_SPECIFIC_TARGET. * i386.c (ix86_set_current_function): Handle explicit default options. * lto.c (lto_read_decls): Do not rebuild DECL_FUNCTION_SPECIFIC_TARGET. From-SVN: r217659
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 933e8eb..498d52e 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5115,6 +5115,9 @@ free_lang_data_in_decl (tree decl)
the PARM_DECL will be used in the function's body). */
for (t = DECL_ARGUMENTS (decl); t; t = TREE_CHAIN (t))
DECL_CONTEXT (t) = decl;
+ if (!DECL_FUNCTION_SPECIFIC_TARGET (decl))
+ DECL_FUNCTION_SPECIFIC_TARGET (decl)
+ = target_option_default_node;
}
/* DECL_SAVED_TREE holds the GENERIC representation for DECL.