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 c/26775] a stack pointer is not recovered correctly when using alloca.



------- Comment #1 from inaoka dot kazuhiro at renesas dot com  2006-03-21 07:51 -------
Created an attachment (id=11078)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11078&action=view)
testcase

m32r-linux-gnu-gcc -S alloca.c

Asm output has the following code.

        ; EPILOGUE
        ld24 r4,#32768
        add sp,r4       <== NG (a stack pointer must be recovered with fp.)
        pop fp
        jmp lr


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26775


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