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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Peter Bergner <berg...@gcc.gnu.org>:

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

commit r11-7249-ga33927c9ab4af3f4595251ce0c8ba54db821b039
Author: Peter Bergner <berg...@linux.ibm.com>
Date:   Mon Feb 15 10:38:33 2021 -0600

    rtl-optimization: Fix uninitialized use of opaque mode variable ICE
[PR98872]

    The initialize_uninitialized_regs function emits (set (reg:) (CONST0_RTX))
    for all uninitialized pseudo uses.  However, some modes (eg, opaque modes)
    may not have a CONST0_RTX defined, leading to an ICE when we try and create
    the initialization insn.  The fix is to skip emitting the initialization
    if there is no CONST0_RTX defined for the mode.

    2021-02-15  Peter Bergner  <berg...@linux.ibm.com>

    gcc/
            PR rtl-optimization/98872
            * init-regs.c (initialize_uninitialized_regs): Skip initialization
            if CONST0_RTX is NULL.

    gcc/testsuite/
            PR rtl-optimization/98872
            * gcc.target/powerpc/pr98872.c: New test.
  • [Bug target/98872] ICE leads to... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to