diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2024-07-14 17:22:27 +0100 |
---|---|---|
committer | Roger Sayle <roger@nextmovesoftware.com> | 2024-07-14 17:22:27 +0100 |
commit | 74e6dfb23163c2dd670d1d60fbf4c782e0b44b94 (patch) | |
tree | 92d3ed11e6e957cc050c3dde92ac21301eea8a49 /gcc/tree-vect-loop.cc | |
parent | 44c9403ed1833ae71a59e84f9e37af3182be0df5 (diff) | |
download | gcc-74e6dfb23163c2dd670d1d60fbf4c782e0b44b94.zip gcc-74e6dfb23163c2dd670d1d60fbf4c782e0b44b94.tar.gz gcc-74e6dfb23163c2dd670d1d60fbf4c782e0b44b94.tar.bz2 |
i386: Tweak i386-expand.cc to restore bootstrap on RHEL.
This is a minor change to restore bootstrap on systems using gcc 4.8
as a host compiler. The fatal error is:
In file included from gcc/gcc/coretypes.h:471:0,
from gcc/gcc/config/i386/i386-expand.cc:23:
gcc/gcc/config/i386/i386-expand.cc: In function 'void ix86_expand_fp_absneg_operator(rtx_code, machine_mode, rtx_def**)':
./insn-modes.h:315:75: error: temporary of non-literal type 'scalar_float_mode' in a constant expression
#define HFmode (scalar_float_mode ((scalar_float_mode::from_int) E_HFmode))
^
gcc/gcc/config/i386/i386-expand.cc:2179:8: note: in expansion of macro 'HFmode'
case HFmode:
^
The solution is to use the E_?Fmode enumeration constants as case values
in switch statements.
2024-07-14 Roger Sayle <roger@nextmovesoftware.com>
* config/i386/i386-expand.cc (ix86_expand_fp_absneg_operator):
Use E_?Fmode enumeration constants in switch statement.
(ix86_expand_copysign): Likewise.
(ix86_expand_xorsign): Likewise.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions