[patch,avr] Fix PR116953 - jump_over_one_insn_p clobbers recog_data.operand in avr_out_sbxx_branch
Denis Chertykov
chertykov@gmail.com
Fri Oct 4 17:48:07 GMT 2024
чт, 3 окт. 2024 г. в 12:19, Georg-Johann Lay <avr@gjlay.de>:
>
> avr_out_sbxx_branch calls jump_over_one_insn_p which may clobber
> recog_data.operand as is calls extract on the next insn.
>
> A fix is to make a copy of avr_out_sbxx_branch`s incoming operands.
>
> Ok to apply?
Ok.
Please apply.
Denis.
>
> Johann
>
> --
>
> AVR: target/116953 - ICE due to operands clobber in avr_out_sbxx_branch.
>
> PR target/116953
> gcc/
> * config/avr/avr.cc (avr_out_sbxx_branch): Work on a copy of
> the operands rather than on operands itself, which is just
> recog_data.operand and may be clobbered by jump_over_one_insn_p.
> gcc/testsuite/
> * gcc.target/avr/torture/pr116953.c: New test.
More information about the Gcc-patches
mailing list