]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR middle-end/102764
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 20 Oct 2021 08:42:56 +0000 (10:42 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 20 Oct 2021 08:46:37 +0000 (10:46 +0200)
commit972ee845f54839e9bd2e4611bb268d75440f3845
treee9ceceb581e4026a5ccf1b447806da911667d97d
parent8fe93cc664ded8cc1952da28b23f3fc68504a73e
Fix PR middle-end/102764

This is a regression present on the mainline in the form of -fcompare-debug
failure at -O3 on a compiler-generated testcase.  Fixed by disregarding a
debug statement in the last position of a basic block to reset the current
location for the outgoing edges.

gcc/
PR middle-end/102764
* cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
statement to reset the current location for the outgoing edges.

gcc/testsuite/
* gcc.dg/pr102764.c: New test.
gcc/cfgexpand.c
gcc/testsuite/gcc.dg/pr102764.c [new file with mode: 0644]