[PATCH] PR rtl-optimization/106421: ICE in bypass_block from non-local goto.
Richard Biener
richard.guenther@gmail.com
Tue Jan 10 10:07:54 GMT 2023
On Mon, Jan 9, 2023 at 8:50 PM Roger Sayle <roger@nextmovesoftware.com> wrote:
>
>
> This patch fixes PR rtl-optimization/106421, an ICE-on-valid (but
> undefined) regression. The fix, as proposed by Richard Biener, is to
> defend against BLOCK_FOR_INSN returning NULL in cprop's bypass_block.
>
> This patch has been tested on x86_64-pc-linux-gnu with make bootstrap
> and make -k check, both with and without --target_board=unix{-m32},
> with no new failures. Ok for mainline?
OK.
>
> 2023-01-09 Roger Sayle <roger@nextmovesoftware.com>
>
> gcc/ChangeLog
> PR rtl-optimization/106421
> * cprop.cc (bypass_block): Check that DEST is local to this
> function (non-NULL) before calling find_edge.
>
> gcc/testsuite/ChangeLog
> PR rtl-optimization/106421
> * gcc.dg/pr106421.c: New test case.
>
>
> Thanks in advance,
> Roger
> --
>
More information about the Gcc-patches
mailing list