This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/38644] [4.4/4.5/4.6/4.7 Regression] Optimization flag -O1 -fschedule-insns2 causes wrong code
- From: "jiangning.liu at arm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 9 Aug 2011 02:07:51 +0000
- Subject: [Bug rtl-optimization/38644] [4.4/4.5/4.6/4.7 Regression] Optimization flag -O1 -fschedule-insns2 causes wrong code
- Auto-submitted: auto-generated
- References: <bug-38644-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644
--- Comment #41 from Jiangning Liu <jiangning.liu at arm dot com> 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