[Bug rtl-optimization/94618] [8/9/10 Regression] '-fcompare-debug' failure (length) with -O2 -fnon-call-exceptions since r8-565-g7581ce9a1ad6df9c
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 17 07:51:36 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94618
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps if we checked DEBUG_INSN_P on BB_END, we could then use
prev_nondebug_insn, so like:
if (INSN_P (insn) && BLOCK_FOR_INSN (insn))
{
basic_block bb = BLOCK_FOR_INSN (insn);
if (BB_END (bb) == insn
|| (DEBUG_INSN_P (BB_END (bb))
&& prev_nondebug_insn (BB_END (bb)) == insn))
purge = true;
}
?
More information about the Gcc-bugs
mailing list