This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix dead_debug_insert_before ICE (PR debug/49522, take 2)
> And here is a version that passed bootstrap/regtest on x86_64-linux and
> i686-linux:
>
> 2011-07-06 Jakub Jelinek <jakub@redhat.com>
>
> PR debug/49522
> * df-problems.c (dead_debug_reset): Remove dead_debug_uses
> referencing debug insns that have been reset.
> (dead_debug_insert_before): Don't assert reg is non-NULL,
> instead return immediately if it is NULL.
>
> * gcc.dg/debug/pr49522.c: New test.
Sorry, our messages crossed. I'd set a flag in the first loop. In the end,
it's up to you.
--
Eric Botcazou