Re: Fix PR middle-end/102764

2021-10-21 Thread Eric Botcazou via Gcc-patches
> 2021-10-20 Eric Botcazou > > PR middle-end/102764 > * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug > statement to reset the current location for the outgoing edges. This apparently breaks -fcompare-debug with -m32 so I have made it more robust by means

Fix PR middle-end/102764

2021-10-20 Thread Eric Botcazou via Gcc-patches
This is a regression present on the mainline in the form of a -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. Bootstrapped/regtested on x86-64/Li