This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix pr41883 + 2 dups
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 19 Feb 2010 10:40:11 -0800
- Subject: Re: Fix pr41883 + 2 dups
- References: <4B44DACC.2010001@redhat.com> <de8d50361002191021u221c6329r9b5b8bf0a62b3520@mail.gmail.com>
On Fri, Feb 19, 2010 at 10:21 AM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Wed, Jan 6, 2010 at 10:47 AM, Richard Henderson <rth@redhat.com> wrote:
>> Tested on i386 and x86_64 linux.
>
> This patch causes an ICE with a cross of spu-elf
> (host=x86_64-linux-gnu), though it seems a generic issue.
> When add_reg_note is called, we have:
> (note 21 12 22 2 NOTE_INSN_DELETED)
> But REG_NOTES modifies a random location (in this case insn 25) and we
> end up with insn 25 with a code of 45560.
I should mention a simple program:
int main(void) { return 0; }
Compiled at -O2 is enough to reproduce the ICE.
Thanks,
Andrew Pinski