From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29489 invoked by alias); 11 Oct 2010 21:17:40 -0000 Received: (qmail 29480 invoked by uid 22791); 11 Oct 2010 21:17:40 -0000 X-SWARE-Spam-Status: No, hits=-2.4 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; Mon, 11 Oct 2010 21:17:36 +0000 From: "dave at hiauly1 dot hia.nrc.ca" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/45722] [4.6 Regression] FAIL: gcc.c-torture/execute/20040709-2.c execution at -O1 and -Os X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dave at hiauly1 dot hia.nrc.ca X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 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: Mon, 11 Oct 2010 21:17: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-10/txt/msg00935.txt.bz2 Message-ID: <20101011211700.KpT5jg4JNBpfOUe5BEE0l6flBbe9gWHHkjGxHzqyu5E@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45722 --- Comment #17 from dave at hiauly1 dot hia.nrc.ca 2010-10-11 21:17:27 UTC --- On Mon, 11 Oct 2010, danglin at gcc dot gnu.org wrote: > At -O0, the operation is handled as a COMPONENT_REF. At -O1, > we have a MEM_REF. The attached change probably can be improved to check whether or not the object is aligned for its mode, but it seems to fix the bug (second testcase). Doing full build and check. Dave