From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20032 invoked by alias); 19 Feb 2010 18:40:17 -0000 Received: (qmail 20023 invoked by uid 22791); 19 Feb 2010 18:40:17 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f216.google.com (HELO mail-gx0-f216.google.com) (209.85.217.216) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Feb 2010 18:40:13 +0000 Received: by gxk8 with SMTP id 8so342685gxk.9 for ; Fri, 19 Feb 2010 10:40:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.239.13 with SMTP id m13mr2255903ybh.242.1266604811563; Fri, 19 Feb 2010 10:40:11 -0800 (PST) In-Reply-To: References: <4B44DACC.2010001@redhat.com> Date: Fri, 19 Feb 2010 18:40:00 -0000 Message-ID: Subject: Re: Fix pr41883 + 2 dups From: Andrew Pinski To: Richard Henderson Cc: GCC Patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-02/txt/msg00783.txt.bz2 On Fri, Feb 19, 2010 at 10:21 AM, Andrew Pinski wrote: > On Wed, Jan 6, 2010 at 10:47 AM, Richard Henderson 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