tree.c (free_lang_data_in_decl): Also set target/optimization flags for thunks.
authorJan Hubicka <hubicka@ucw.cz>
Mon, 16 May 2016 09:59:25 +0000 (11:59 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 16 May 2016 09:59:25 +0000 (09:59 +0000)
* tree.c (free_lang_data_in_decl): Also set target/optimization flags
for thunks.

From-SVN: r236272

gcc/ChangeLog
gcc/tree.c

index 8b09e24b552c7439993c781a8006c79a777d7a8e..63ad08e27da701700036569fda36f00eacaf5ab9 100644 (file)
@@ -1,3 +1,8 @@
+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
index 4e0000416d860b6d43b9502f6bf633af299007b7..5a1d1676525d74b4463d3975ec95b2b8d895b0bb 100644 (file)
@@ -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;