From: Christophe Lyon Date: Mon, 12 Oct 2020 13:28:20 +0000 (+0000) Subject: arm: Use E_FOOmode instead of FOOmode in arm_preferred_simd_mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e7352b2ad089ea68d689f3b79d93e3ee26326f7;p=gcc.git arm: Use E_FOOmode instead of FOOmode in arm_preferred_simd_mode gcc-4.8.5 does not accept case clauses with non-literal type, which happens for "QImode" as it expands to (scalar_int_mode ((scalar_int_mode::from_int) E_QImode)). Use E_QImode instead in arm_preferred_simd_mode, to fix the build. Same for HImode, SImode, HFmode and SFmode as introduced by a recent patch. 2020-10-12 Christophe Lyon gcc/ * config/arm/arm.c (arm_preferred_simd_mode): Use E_FOOmode instead of FOOmode. --- diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 5d9c995e5c6..0b8c5fa074d 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -28967,11 +28967,11 @@ arm_preferred_simd_mode (scalar_mode mode) if (TARGET_HAVE_MVE) switch (mode) { - case QImode: + case E_QImode: return V16QImode; - case HImode: + case E_HImode: return V8HImode; - case SImode: + case E_SImode: return V4SImode; default:; @@ -28980,9 +28980,9 @@ arm_preferred_simd_mode (scalar_mode mode) if (TARGET_HAVE_MVE_FLOAT) switch (mode) { - case HFmode: + case E_HFmode: return V8HFmode; - case SFmode: + case E_SFmode: return V4SFmode; default:;