aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-12-18 13:06:34 +0100
committerMartin Liska <marxin@gcc.gnu.org>2014-12-18 12:06:34 +0000
commit2ddeb89bf572908b3c5432f86c87fde80b58586b (patch)
tree3d20eb0703e78901b71e5284da055473edf73ba3 /gcc/tree-inline.c
parent544dafa6966f311c31615c742eb59de13dba9ab8 (diff)
downloadgcc-2ddeb89bf572908b3c5432f86c87fde80b58586b.zip
gcc-2ddeb89bf572908b3c5432f86c87fde80b58586b.tar.gz
gcc-2ddeb89bf572908b3c5432f86c87fde80b58586b.tar.bz2
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
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 0a75489..59f2dab 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 <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. */