From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29223 invoked by alias); 11 Nov 2010 11:00:17 -0000 Received: (qmail 29130 invoked by uid 22791); 11 Nov 2010 11:00:15 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Nov 2010 11:00:07 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/46088] [4.6 Regression] ICE: SIGSEGV in ix86_binary_operator_ok (i386.c:15025) with -Os -fnon-call-exceptions -fpeel-loops X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Status AssignedTo Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 11 Nov 2010 11:00:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-11/txt/msg01460.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46088 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | --- Comment #5 from Jakub Jelinek 2010-11-11 10:59:32 UTC --- That's normal before reload is completed. Recog can be called either with pnum_clobbers NULL, then it will only try to match if all the clobbers are there, or if pnum_clobbers is non-NULL, it tries to match the insn without the clobbers and tell the caller how many clobbers would be needed to make the insn valid, then add_clobbers may be called to actually add those clobbers. Unfortunately, the *ashl3_cconly *3_cconly patterns (the only two I could find in config/i386/i386.md) reference this clobber through ix86_binary_operator_ok, which is of course a big no no if the clobber does not exist. I guess the easiest fix would be just not to call ix86_binary_operator_ok here, but some different predicate, like ix86_binary_operator_ok, but which would not look at operands[0] aka dst, instead assume it is something matching scratch_operand predicate.