This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26775] a stack pointer is not recovered correctly when using alloca.
- From: "inaoka dot kazuhiro at renesas dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2006 07:51:36 -0000
- Subject: [Bug c/26775] a stack pointer is not recovered correctly when using alloca.
- References: <bug-26775-5993@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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