From aa53a9051ef5e079efa3c455db85c28897d12ffe Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 16 May 2016 11:59:25 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b09e24b552..63ad08e27da 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-16 Jan Hubicka + + * tree.c (free_lang_data_in_decl): Also set target/optimization flags + for thunks. + 2016-05-16 Jan Hubicka * ipa-inline.c (report_inline_failed_reason): Look into thunks, too diff --git a/gcc/tree.c b/gcc/tree.c index 4e0000416d8..5a1d1676525 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; -- 2.30.2