This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/63573] [5 Regression] libgo: ICE building libgo on powerpc-linux-gnu
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Nov 2014 17:17:00 +0000
- Subject: [Bug bootstrap/63573] [5 Regression] libgo: ICE building libgo on powerpc-linux-gnu
- Auto-submitted: auto-generated
- References: <bug-63573-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63573
--- Comment #28 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Martin LiÅka from comment #25)
> There's updated version of Honza's patch that fixes testcase instroduced in
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63573#c23:
>
> diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
> index d4864ae..0036f15 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. */
This fixes the ICE I'm seeing