The following wrong code can be generated by pru-gcc for sibling calls:
20000074: f104a285 lbbo r5.b0, sp, 4, 12
20000078: 0110e2e2 add sp, sp, 16
2000007c: 20e70000 jmp r7
To fix, the sibcall insn must be modified to use only call-clobbered registers for the indirect call.
The following wrong code can be generated by pru-gcc for sibling calls: 20000074: f104a285 lbbo r5.b0, sp, 4, 12 20000078: 0110e2e2 add sp, sp, 16 2000007c: 20e70000 jmp r7
To fix, the sibcall insn must be modified to use only call-clobbered registers for the indirect call.