From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7035 invoked by alias); 28 Oct 2011 20:29:36 -0000 Received: (qmail 7020 invoked by uid 22791); 28 Oct 2011 20:29:35 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BF,URI_BLOGSPOT 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, 28 Oct 2011 20:29:21 +0000 From: "Kyle.D.Moffett at boeing dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/50906] New: e500 exception unwinding under "-Os" causes SIGSEGV Date: Fri, 28 Oct 2011 20:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Kyle.D.Moffett at boeing dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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 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: 2011-10/txt/msg03027.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50906 Bug #: 50906 Summary: e500 exception unwinding under "-Os" causes SIGSEGV Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: Kyle.D.Moffett@boeing.com Created attachment 25649 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25649 Test case, part 1 The libffi test-suite is failing on an e500v2 build of GCC 4.6.1 with a segmentation fault in libgcc (called from "throw()" in the "unwindtest.cc" file). The target GCC configure options: --build/--host/--target=powerpc-linux-gnuspe --with-cpu=8548 --enable-e500_double --with-long-double-128 I have extracted it to the attached minimal test-case, compiled as follows: $ g++ -Wall -Wextra -Werror -ggdb3 -Os -c unwindtest.cc -o unwindtest.o $ g++ -Wall -Wextra -Werror -ggdb3 -Os -c unwindtestfunc.cc -o unwindtestfunc.o $ g++ -ggdb3 -Os -o unwindtest unwindtest.o unwindtestfunc.o The test fails if "unwindtestfunc.cc" is built with "-Os", but not if it is built with "-O2". The compile options for unwindtest.cc have no effect on the success or failure of the test. Cheers, Kyle Moffett -- Curious about my work on the Debian powerpcspe port? I'm keeping a blog here: http://pureperl.blogspot.com/