[Bug target/122187] [14/15/16 Regression] internal compiler error: in avr_out_extr

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 7 16:07:00 GMT 2025


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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Georg-Johann Lay
<gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:1a499691f04251af24fa81a13d3c381f7a9b23f7

commit r14-12060-g1a499691f04251af24fa81a13d3c381f7a9b23f7
Author: Georg-Johann Lay <avr@gjlay.de>
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)


More information about the Gcc-bugs mailing list