From: Jan Hubicka Date: Thu, 18 Dec 2014 12:06:34 +0000 (+0100) Subject: re PR bootstrap/63573 (libgo: ICE building libgo on powerpc-linux-gnu) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ddeb89bf572908b3c5432f86c87fde80b58586b;p=gcc.git re PR bootstrap/63573 (libgo: ICE building libgo on powerpc-linux-gnu) Fix for PR bootstrap/63573. PR bootstrap/63573 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p predicate. From-SVN: r218861 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 24a252ac68f..7b85cbc751b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-12-18 Jan Hubicka + + PR bootstrap/63573 + * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p + predicate. + 2014-12-18 Martin Liska PR ipa/64146 diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 0a7548967c5..59f2dab8d08 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1617,8 +1617,12 @@ remap_gimple_stmt (gimple stmt, copy_body_data *id) /* Clear flags that need revisiting. */ if (gcall *call_stmt = dyn_cast (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. */