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~