From 09cb2aa5f8b41d82b2c0ac8dcb68bc7244c8835e Mon Sep 17 00:00:00 2001 From: dzaima Date: Tue, 13 Feb 2024 22:41:14 +0200 Subject: [PATCH] gcc 14 should have "#pragma GCC novector" --- src/h.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/h.h b/src/h.h index c975e660..fa96059f 100644 --- a/src/h.h +++ b/src/h.h @@ -128,7 +128,11 @@ typedef size_t ux; #define EXACTLY_GCC 1 #define NOUNROLL _Pragma("GCC unroll 1") #define vfor _Pragma("GCC ivdep") for - #define NOVECTORIZE + #if __GNUC__ >= 14 + #define NOVECTORIZE _Pragma("GCC novector") + #else + #define NOVECTORIZE + #endif #else #define NOUNROLL #define NOVECTORIZE