From 97db670956d83749ec3fe1485bacd046662c6856 Mon Sep 17 00:00:00 2001 From: Guoxiong Li Date: Wed, 20 Dec 2023 03:58:12 +0000 Subject: [PATCH] 8321688: Build on linux with GCC 7.5.0 fails after 8319577 Reviewed-by: kbarrett, sviswanathan --- src/java.base/linux/native/libsimdsort/simdsort-support.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/linux/native/libsimdsort/simdsort-support.hpp b/src/java.base/linux/native/libsimdsort/simdsort-support.hpp index c73fd7920d8..f6946fdccec 100644 --- a/src/java.base/linux/native/libsimdsort/simdsort-support.hpp +++ b/src/java.base/linux/native/libsimdsort/simdsort-support.hpp @@ -31,8 +31,8 @@ #define assert(cond, msg) { if (!(cond)) { fprintf(stderr, "assert fails %s %d: %s\n", __FILE__, __LINE__, msg); abort(); }} -// GCC >= 7.5 is needed to build AVX2 portions of libsimdsort using C++17 features -#if defined(_LP64) && (defined(__GNUC__) && ((__GNUC__ > 7) || ((__GNUC__ == 7) && (__GNUC_MINOR__ >= 5)))) +// GCC >= 9.1 is needed to build AVX2 portions of libsimdsort using C++17 features +#if defined(_LP64) && (defined(__GNUC__) && ((__GNUC__ > 9) || ((__GNUC__ == 9) && (__GNUC_MINOR__ >= 1)))) #define __SIMDSORT_SUPPORTED_LINUX #endif