aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-05-16 11:59:25 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-05-16 09:59:25 +0000
commitaa53a9051ef5e079efa3c455db85c28897d12ffe (patch)
tree123a8d399292161df703575e3050905d5b9a96a8 /gcc/tree.c
parent1f6f9079d5625d212c2d8e01acb99682315f5d80 (diff)
downloadgcc-aa53a9051ef5e079efa3c455db85c28897d12ffe.zip
gcc-aa53a9051ef5e079efa3c455db85c28897d12ffe.tar.gz
gcc-aa53a9051ef5e079efa3c455db85c28897d12ffe.tar.bz2
tree.c (free_lang_data_in_decl): Also set target/optimization flags for thunks.
* tree.c (free_lang_data_in_decl): Also set target/optimization flags for thunks. From-SVN: r236272
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 4e00004..5a1d167 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5418,7 +5418,7 @@ free_lang_data_in_decl (tree decl)
DECL_INITIAL (decl) = error_mark_node;
}
}
- if (gimple_has_body_p (decl))
+ if (gimple_has_body_p (decl) || (node && node->thunk.thunk_p))
{
tree t;