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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Georg-Johann Lay <g...@gcc.gnu.org>:

https://gcc.gnu.org/g:16065b6239aab2eecfd7a50f58d38324ee6478ba

commit r15-8281-g16065b6239aab2eecfd7a50f58d38324ee6478ba
Author: Georg-Johann Lay <a...@gjlay.de>
Date:   Tue Mar 18 21:22:22 2025 +0100

    AVR: target/119355 - Fix ICE in pass avr-fuse-move / -mfuse-move.

    This ICE only occurred when the compiler is built with, say
    CXXFLAGS='-Wp,-D_GLIBCXX_ASSERTIONS'.  The problem was that
    a value from an illegal REGNO was read.  The value was not
    used in these cases, but the access triggered an assertion
    due to reading past std::array.

    gcc/
            PR target/119355
            * config/avr/avr-passes.cc (memento_t::apply): Only
            read values[p.arg] when it is actually used.

Reply via email to