Re: [PATCH] Fix -fcompare-debug issue in purge_dead_edges [PR95080]

2020-05-13 Thread Richard Biener
On Wed, 13 May 2020, Jakub Jelinek wrote: > Hi! > > The following testcase fails with -fcompare-debug, the bug used to be latent > since introduction of -fcompare-debug. > The loop at the start of purge_dead_edges behaves differently between -g0 > and -g - if the last insn is a DEBUG_INSN, then i

[PATCH] Fix -fcompare-debug issue in purge_dead_edges [PR95080]

2020-05-13 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase fails with -fcompare-debug, the bug used to be latent since introduction of -fcompare-debug. The loop at the start of purge_dead_edges behaves differently between -g0 and -g - if the last insn is a DEBUG_INSN, then it skips not just DEBUG_INSNs but also NOTEs until it fi