From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26714 invoked by alias); 2 May 2013 06:58:44 -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 Received: (qmail 26663 invoked by uid 48); 2 May 2013 06:58:39 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/57130] [4.8/4.9 Regression] Incorrect "and --> extract" conversion in combine Date: Thu, 02 May 2013 06:58:00 -0000 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: 4.8.1 X-Bugzilla-Changed-Fields: 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 X-SW-Source: 2013-05/txt/msg00058.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57130 --- Comment #2 from Jakub Jelinek 2013-05-02 06:58:38 UTC --- Slightly more reduced testcase: struct S { int a, b, c, d; } s[2] = { { 6, 8, -8, -5 }, { 0, 2, -1, 2 } }; __attribute__((noinline, noclone)) void foo (struct S r) { static int cnt; if (__builtin_memcmp (&r, &s[cnt++], sizeof r) != 0) __builtin_abort (); } int main () { struct S r = { 6, 8, -8, -5 }; foo (r); r = (struct S) { 0, 2, -1, 2 }; foo (r); return 0; }