]> gcc.gnu.org Git - gcc.git/commit
[PATCH] rs6000 improve handling of built-in initialization [PR95952]
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Mon, 13 Jul 2020 18:38:17 +0000 (13:38 -0500)
committerJakub Jelinek <jakub@redhat.com>
Thu, 17 Sep 2020 15:40:39 +0000 (17:40 +0200)
commit8358168306e45b5757929191517c056f228aa846
tree21d6098cef45da5c70b2ee25102ce3ed169b17ee
parent87b0c609fc3971663e6ac376452b69d899f80b1c
[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_schmidt@vnet.ibm.com>

gcc/ChangeLog:

PR target/95952

* config/rs6000/rs6000.c (altivec_init_builtins): Add continue clause to
predicate builtin handling.
gcc/config/rs6000/rs6000.c
This page took 0.063894 seconds and 5 git commands to generate.