https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122187

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Georg-Johann Lay
<[email protected]>:

https://gcc.gnu.org/g:e4f5a5b494ef66edf5b59bf822d08583f41d7e52

commit r15-10397-ge4f5a5b494ef66edf5b59bf822d08583f41d7e52
Author: Georg-Johann Lay <[email protected]>
Date:   Tue Oct 7 17:50:34 2025 +0200

    AVR: target/122187 - Don't clobber recog_data.operand[] in insn out.

    avr.cc::avr_out_extr() and avr.cc::avr_out_extr_not()
    changed xop for output, which spoiled the operand for
    the next invokation, running into an assertion.

    This patch makes a local copy of the operands.

            PR target/122187
    gcc/
            * config/avr/avr.cc (avr_out_extr, avr_out_extr_not):
            Make a local copy of the passed rtx[] operands.

    gcc/testsuite/
            * gcc.target/avr/torture/pr122187.c: New test.

    (cherry picked from commit 3cbd43d640d6384df85c171a0245488f0adc3145)

Reply via email to