diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2016-05-16 11:59:25 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-05-16 09:59:25 +0000 |
commit | aa53a9051ef5e079efa3c455db85c28897d12ffe (patch) | |
tree | 123a8d399292161df703575e3050905d5b9a96a8 | |
parent | 1f6f9079d5625d212c2d8e01acb99682315f5d80 (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b09e24..63ad08e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2016-05-16 Jan Hubicka <hubicka@ucw.cz> + * tree.c (free_lang_data_in_decl): Also set target/optimization flags + for thunks. + +2016-05-16 Jan Hubicka <hubicka@ucw.cz> + * ipa-inline.c (report_inline_failed_reason): Look into thunks, too (inline_small_functions): Do not look for function symbol when resetting caches. @@ -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; |