]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: target/64242 - Copy FP to a local reg in nonlocal_goto.
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 4 Dec 2024 19:56:50 +0000 (20:56 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Thu, 5 Dec 2024 10:43:54 +0000 (11:43 +0100)
commitf7b5527d1b48b33d8ab633c1e9dcb9883667492a
tree9f218a5beff5dffb0b0a1dbb309f82789ee6629a
parent9ae9db54631f38d66666a2080a2a26c5c5d98fa9
AVR: target/64242 - Copy FP to a local reg in nonlocal_goto.

In nonlocal_goto sets, change hard_frame_pointer_rtx only after
emit_stack_restore() restored SP.  This is needed because SP
my be stored in some frame location.

gcc/
PR target/64242
* config/avr/avr.md (nonlocal_goto): Don't restore
hard_frame_pointer_rtx directly, but copy it to local
register, and only set hard_frame_pointer_rtx from it
after emit_stack_restore().
gcc/config/avr/avr.md