This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/11736] Stackpointer messed up on SuperH
- From: "marcus at mc dot pp dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2003 21:46:35 -0000
- Subject: [Bug target/11736] Stackpointer messed up on SuperH
- References: <20030730222508.11736.marcus@mc.pp.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11736
------- Additional Comments From marcus at mc dot pp dot se 2003-08-25 21:46 -------
Subject: Re: Stackpointer messed up on SuperH
"dhazeghi at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> writes:
> Confirmed with mainline (20030825). Is the code produced by -O0 likewise bad?
No, with -O0 the code becomes
[...]
tst r1,r1
bt .L2
add #-4,r15
[...]
with another "add #-4,r15" at .L2:. Since bt does not have the /s
flag, only one (and exactly one) of the adds will be executed.
// Marcus