re PR bootstrap/63573 (libgo: ICE building libgo on powerpc-linux-gnu)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 18 Dec 2014 12:06:34 +0000 (13:06 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 18 Dec 2014 12:06:34 +0000 (12:06 +0000)
Fix for PR bootstrap/63573.

PR bootstrap/63573
* tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
predicate.

From-SVN: r218861

gcc/ChangeLog
gcc/tree-inline.c

index 24a252ac68fe7fb597ca18ad7a210bf198432276..7b85cbc751b4510b44bb406493b4730d164edac3 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 0a7548967c53f343e987d60ac3376d01f9e6320f..59f2dab8d0866f505b1633f7a41a10942d5a61e0 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.  */