From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25088 invoked by alias); 10 Feb 2012 19:20:26 -0000 Received: (qmail 25066 invoked by uid 22791); 10 Feb 2012 19:20:24 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Fri, 10 Feb 2012 19:20:13 +0000 From: "ktietz at gcc dot gnu.org" To: java-prs@gcc.gnu.org Subject: [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null Date: Fri, 10 Feb 2012 19:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcj X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: ktietz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.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 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2012-q1/txt/msg00079.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057 --- Comment #5 from Kai Tietz 2012-02-10 19:19:56 UTC --- Hmm, I assume issue is related to using of -mms-bitfields for 4.7 for windows-targets. Does the following patch fix the issue? Index: exception.cc =================================================================== --- exception.cc (revision 184105) +++ exception.cc (working copy) @@ -33,12 +33,18 @@ } #include "unwind.h" +#ifdef __MINGW32__ +__attribute__ ((gcc_struct)) +#endif struct alignment_test_struct { char space; char end[0] __attribute__((aligned)); }; +#ifdef __MINGW32__ +__attribute__ ((gcc_struct)) +#endif struct java_exception_header { /* Cache handler details between Phase 1 and Phase 2. */