Fix for PR bootstrap/63573.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2014 12:06:34 +0000 (12:06 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2014 12:06:34 +0000 (12:06 +0000)
PR bootstrap/63573
* tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
predicate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218861 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-inline.c

index 24a252a..7b85cbc 100644 (file)
@@ -1,3 +1,9 @@
+2014-12-18  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR bootstrap/63573
+       * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
+       predicate.
+
 2014-12-18  Martin Liska  <mliska@suse.cz>
 
        PR ipa/64146
index 0a75489..59f2dab 100644 (file)
@@ -1617,8 +1617,12 @@ remap_gimple_stmt (gimple stmt, copy_body_data *id)
 
       /* Clear flags that need revisiting.  */
       if (gcall *call_stmt = dyn_cast <gcall *> (copy))
-       if (gimple_call_tail_p (call_stmt))
-         gimple_call_set_tail (call_stmt, false);
+        {
+         if (gimple_call_tail_p (call_stmt))
+           gimple_call_set_tail (call_stmt, false);
+         if (gimple_call_from_thunk_p (call_stmt))
+           gimple_call_set_from_thunk (call_stmt, false);
+       }
 
       /* Remap the region numbers for __builtin_eh_{pointer,filter},
         RESX and EH_DISPATCH.  */