On 04/17/2014 10:14 AM, DJ Delorie wrote: > _medium_frame: > pushm r6-r12 > add #-4, r0, r6 ; marked frame-related (fp = sp - 4) > mov.L r6, r0 ; marked frame-related (sp = fp)
There's your bug. If the frame pointer is required, you shouldn't mark that third insn as frame related. With this sequence, the auto-guessing code is assuming that r6 is just a computational temporary and that sp is still the cfa. r~