From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28649 invoked by alias); 11 Nov 2010 21:45:50 -0000 Received: (qmail 28636 invoked by uid 22791); 11 Nov 2010 21:45:49 -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 21:45:44 +0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" 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: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: REOPENED 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: 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 21:45: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/msg01533.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45722 --- Comment #22 from ro at CeBiTec dot Uni-Bielefeld.DE 2010-11-11 21:45:40 UTC --- It dies with SIGBUS here: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 1)] 0x00012d24 in testE () at /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/execute/20040709-2.c:95 95 struct pck E { unsigned long long l, i : 12, j : 23, k : 29; }; T(E) 1: x/i $pc => 0x12d24 : ld [ %i5 ], %i0 (gdb) p $i5 $1 = 162310 The source address (%i5) isn't 4-byte aligned as it should be. I'm attaching the assembler output for the 32-bit -Os case. Btw., IRIX 6.5 (mips-sgi-irix6.5) is equally affected, both 32 and 64-bit. I haven't checked in more detail what's happening there yet. Rainer