From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21948 invoked by alias); 9 Aug 2011 02:08:07 -0000 Received: (qmail 21936 invoked by uid 22791); 9 Aug 2011 02:08:05 -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; Tue, 09 Aug 2011 02:07:51 +0000 From: "jiangning.liu at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/38644] [4.4/4.5/4.6/4.7 Regression] Optimization flag -O1 -fschedule-insns2 causes wrong code 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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jiangning.liu at arm dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.4.7 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: Tue, 09 Aug 2011 02:08: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: 2011-08/txt/msg00911.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644 --- Comment #41 from Jiangning Liu 2011-08-09 02:04:52 UTC --- > Yes, this is from the libstdc++ sources (4.6.1 20110627, > libstdc++-v3/libsupc++/new_opnt.cc). You need a non-EABI ARM variant of GCC > since this bug manifestation will only show up in the SJLJ version. I tried and my local patch works on this case. As you can see like below, it is fixed! add r0, r0, #12 bl _Unwind_SjLj_Unregister ldr r0, [r7, #8] mov sp, r7 add sp, sp, #68 @ sp needed for prologue pop {r2, r3, r4, r5} Thanks, -Jiangning