From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31400 invoked by alias); 3 Nov 2010 08:31:55 -0000 Received: (qmail 31391 invoked by uid 22791); 3 Nov 2010 08:31:55 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Wed, 03 Nov 2010 08:31:52 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/46212] [4.6 regression] segfault in reg_nonzero_bits_for_combine 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: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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: Wed, 03 Nov 2010 08:31: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/msg00260.txt.bz2 Message-ID: <20101103083100.PD1aPUPpOVmtA-pKsJHHsM96bn3oGNosnERo-0I7kG8@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46212 --- Comment #7 from Jakub Jelinek 2010-11-03 08:30:29 UTC --- Author: jakub Date: Wed Nov 3 08:30:21 2010 New Revision: 166231 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166231 Log: PR rtl-optimization/46034 PR rtl-optimization/46212 PR rtl-optimization/46248 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src before i0dest -> i0src substitution and pass 1 instead of 0 as last argument to subst on i2pat. * gcc.c-torture/compile/pr46034.c: New test. * gcc.c-torture/compile/pr46248.c: New test. * gcc.dg/pr46212.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr46034.c trunk/gcc/testsuite/gcc.c-torture/compile/pr46248.c trunk/gcc/testsuite/gcc.dg/pr46212.c Modified: trunk/gcc/ChangeLog trunk/gcc/combine.c trunk/gcc/testsuite/ChangeLog