This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/38644] Optimization flag -O1 -fschedule-insns2 causes wrong code
- From: "rearnsha at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2009 13:33:40 -0000
- Subject: [Bug rtl-optimization/38644] Optimization flag -O1 -fschedule-insns2 causes wrong code
- References: <bug-38644-17122@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from rearnsha at gcc dot gnu dot org 2009-12-22 13:33 -------
I've looked at several backends and certainly not all do (sparc for example).
I think they get away with it because the stack pointer is valid in all
addressing constructs -- that's not true for Thumb where SP can only be used
for 32-bit loads. However, that doesn't mean there isn't an underlying bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644