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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Przemyslaw Wirkus
<wir...@gcc.gnu.org>:

https://gcc.gnu.org/g:05f6971ac40912ef062915f88b3ea0bf27278285

commit r10-9882-g05f6971ac40912ef062915f88b3ea0bf27278285
Author: Vladimir N. Makarov <vmaka...@redhat.com>
Date:   Thu Jan 21 17:27:01 2021 -0500

    [PR98777] LRA: Use preliminary created pseudo for in LRA elimination
subpass

    LRA did not extend ira_reg_equiv after generation of a pseudo in
    eliminate_regs_in_insn which might results in LRA crash.  It is better not
    to extend ira_reg_equiv but to use preliminary generated pseudo.  The
    patch implements it.

    gcc/ChangeLog:

            PR rtl-optimization/98777
            * lra-int.h (lra_pmode_pseudo): New extern.
            * lra.c (lra_pmode_pseudo): New global.
            (lra): Set it up.
            * lra-eliminations.c (eliminate_regs_in_insn): Use it.

    gcc/testsuite/ChangeLog:

            PR rtl-optimization/98777
            * gcc.target/riscv/pr98777.c: New.

    (cherry picked from commit 68ba1039c7daf0485b167fe199ed7e8031158091)

Reply via email to