[Bug target/11736] Stackpointer messed up on SuperH

marcus at mc dot pp dot se gcc-bugzilla@gcc.gnu.org
Mon Aug 25 21:46:00 GMT 2003


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



More information about the Gcc-bugs mailing list