Hi. Following patch is taken from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63573#c18, where Honza gave pre-approval for the patch. Jonathan Wakely is waiting for approval of the patch to commit his new changes.
Tested on x86_64-linux-pc and no new regression was seen. Ready for trunk? Thanks, Martin
>From 66fb5d9ea20eaa999af95daf31b6fc4bde320e50 Mon Sep 17 00:00:00 2001 From: mliska <mli...@suse.cz> Date: Tue, 16 Dec 2014 16:37:11 +0100 Subject: [PATCH] Fix for PR bootstrap/63573. gcc/ChangeLog: 2014-12-16 Jan Hubicka <hubi...@ucw.cz> PR bootstrap/63573 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p predicate. --- gcc/tree-inline.c | 8 ++++++-- 1 file 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. */ -- 2.1.2