This is the mail archive of the gcc@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]

Re: gcc restores wrong stack pointer value?


On 02/26/2011 08:20 AM, DJ Delorie wrote:
> Is this expected behavior?  Do I need to do some magic in my epilogue
> to further "fix" the stack pointer?

Well, you can begin by honoring frame_pointer_needed properly.
I can't see how m32c works with any function that uses alloca.

You seem to be relying on the EXITD instruction to restore the
stack pointer from the frame pointer, but doing so after actually
using the invalid stack pointer to pop registers.


r~


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