[Bug c/26775] a stack pointer is not recovered correctly when using alloca.
inaoka dot kazuhiro at renesas dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 21 07:51:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list