]> gcc.gnu.org Git - gcc.git/commitdiff
i386: Tweak ix86_mode_can_transfer_bits to restore bootstrap on RHEL.
authorRoger Sayle <roger@nextmovesoftware.com>
Thu, 8 Aug 2024 10:16:29 +0000 (11:16 +0100)
committerRoger Sayle <roger@nextmovesoftware.com>
Thu, 8 Aug 2024 10:16:29 +0000 (11:16 +0100)
This minor patch, very similar to one posted and approved previously at
https://gcc.gnu.org/pipermail/gcc-patches/2024-July/657229.html is
required to restore builds on systems using gcc 4.8 as a host compiler.
Using the enumeration constants E_SFmode and E_DFmode avoids issues with
SFmode and DFmode being "non-literal types in constant expressions".

2024-08-08  Roger Sayle  <roger@nextmovesoftware.com>

gcc/ChangeLog
* config/i386/i386.cc (ix86_mode_can_transfer_bits): Use E_?Fmode
enumeration constants in switch statement.

gcc/config/i386/i386.cc

index 8f289b5bc22852b162bd68a54c51052a747f70e4..02e282904410d5c9efbbcbb9693a84ad32ed670b 100644 (file)
@@ -26113,8 +26113,8 @@ ix86_mode_can_transfer_bits (machine_mode mode)
       || GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT)
     switch (GET_MODE_INNER (mode))
       {
-      case SFmode:
-      case DFmode:
+      case E_SFmode:
+      case E_DFmode:
        /* These suffer from normalization upon load when not using SSE.  */
        return !(ix86_fpmath & FPMATH_387);
       default:
This page took 0.079952 seconds and 5 git commands to generate.