Hi Max,

> It would work if a frame pointer was initialized in the function test, but
> it wasn't:

Right, because it unwinds, it needs a valid frame pointer since we no
longer store the stack pointer. So xtensa_frame_pointer_required
should do something like:

  if (cfun->machine->accesses_prev_frame || cfun->has_nonlocal_label)
    return true;

Wilco

Reply via email to