On Fri, 14 Jul 2023, Vladimir Makarov via Gcc wrote: > > On the avr, the stack pointer (SP) > > is not used to access stack slots > It is very uncommon target then.
Same with the VAX target. SP is used for outgoing function arguments, function calls, alloca only. AP is used for incoming function arguments and is set automatically by hardware at function entry. FP is used for local variables and is likewise set by hardware at function entry. The RET instruction sets SP from FP automatically as the first step of the function return sequence. I guess it'll affect LRA conversion of the target too. Maciej