This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/38644] [4.6 Regression] Optimization flag -O1 -fschedule-insns2 causes wrong code
- From: "hagayg at broadcom dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Jul 2012 16:26:15 +0000
- Subject: [Bug rtl-optimization/38644] [4.6 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
Hagay <hagayg at broadcom dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hagayg at broadcom dot com
--- Comment #65 from Hagay <hagayg at broadcom dot com> 2012-07-31 16:26:15 UTC ---
Also saw the same problem on MIPS
Compiling using 'gcc version 4.5.2 (Sourcery CodeBench Lite 2011.09-86)'
Produces the below assembly (mips16)
4c13 addiu a0,19
6478 restore 64,ra,s0-s1
f3a6 dd50 sw v0,13232(a1)
e820 jr ra
8c40 lh v0,0(a0)
6500 nop
You can see the 'lh' comes after 'restore' , so the problem exist on MIPS
Sourcery as well.