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

--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Will Schmidt
<wills...@gcc.gnu.org>:

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

commit r8-10362-geba1113dbdf4b1d0d88755b2538327a1d09837b3
Author: Will Schmidt <will_schm...@vnet.ibm.com>
Date:   Mon Jul 13 13:38:17 2020 -0500

    [PATCH] rs6000 improve handling of built-in initialization [PR95952]

      Handle a scenario with a combination of old hardware, gcc-8 and
    binutils where gcc will ICE during it's selftest.  This ICE was exposed
    when the builtin processing for better #pragma support was added, where
    we no longer skip builtin initialization based on the current mask.

    Per the bug report and assorted debug, the ICE occurrs when building
    the gcc-8 branch on a 970* based system with an old binutils.  (gcc-9 and
    newer is OK.  binutils 2.34 is reported to allow success).

    The attached patch adds a clause to the builtin initialization to skip
    initialization of a builtin when the builtin mask is set but the icode
    value is zero.   The subsequent assert check remains in place.

    2020-07-13  Will Schmidt  <will_schm...@vnet.ibm.com>

    gcc/ChangeLog:

            PR target/95952

            * config/rs6000/rs6000.c (altivec_init_builtins): Add continue
clause to
            predicate builtin handling.

Reply via email to