This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/11736] Stackpointer messed up on SuperH


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]