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

--- Comment #12 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:5bfb91c14f98f6750281217f737b3d95c4e73584

commit r15-3682-g5bfb91c14f98f6750281217f737b3d95c4e73584
Author: Georg-Johann Lay <a...@gjlay.de>
Date:   Fri Sep 6 11:23:06 2024 +0200

    reload1.cc: rtl-optimization/116326 - Use RELOAD_ELIMINABLE_REGS.

    The new macro is required because reload and LRA are using different
    representations for a multi-register frame pointer.  As ELIMINABLE_REGS
    is used to initialize static const objects, it can't depend on -mlra.

            PR rtl-optimization/116326
    gcc/
            * reload1.cc (reg_eliminate_1): Initialize from
            RELOAD_ELIMINABLE_REGS if defined.
            * config/avr/avr.h (RELOAD_ELIMINABLE_REGS): Copy from
ELIMINABLE_REGS.
            (ELIMINABLE_REGS): Don't mention sub-regnos of the frame pointer.
            * doc/tm.texi.in (Eliminating Frame Pointer and Arg Pointer)
            <RELOAD_ELIMINABLE_REGS>: Add documentation.
            * doc/tm.texi: Rebuild.
    gcc/testsuite/
            * gcc.target/avr/torture/lra-pr116324.c: New test.
            * gcc.target/avr/torture/lra-pr116325.c: New test.

Reply via email to