diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2024-08-08 11:16:29 +0100 |
---|---|---|
committer | Roger Sayle <roger@nextmovesoftware.com> | 2024-08-08 11:16:29 +0100 |
commit | 4d44f3fc387815eb232d7757352857993a1d21d9 (patch) | |
tree | 0dfb1685dbe53e972e8dd48836161f13307a2046 /gcc | |
parent | afa3a4a52cf91485477e4aaa5f05987ec7ff869d (diff) | |
download | gcc-4d44f3fc387815eb232d7757352857993a1d21d9.zip gcc-4d44f3fc387815eb232d7757352857993a1d21d9.tar.gz gcc-4d44f3fc387815eb232d7757352857993a1d21d9.tar.bz2 |
i386: Tweak ix86_mode_can_transfer_bits to restore bootstrap on RHEL.
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/i386.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index 8f289b5..02e2829 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -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: |