summaryrefslogtreecommitdiff
path: root/config_misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-20 06:41:03 -0400
committerJeffrey Walton <noloader@gmail.com>2021-04-20 06:41:03 -0400
commit9bc2e92b2893e78c80e43fe050e6fca3c3529f68 (patch)
tree4dba021dcc9e9330fdc0c6b827f544dd3f2a3547 /config_misc.h
parent36972fde79561510be4532fb3aee3820852c5335 (diff)
downloadcryptopp-git-9bc2e92b2893e78c80e43fe050e6fca3c3529f68.tar.gz
Update GCC attribute target versions
Diffstat (limited to 'config_misc.h')
-rw-r--r--config_misc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/config_misc.h b/config_misc.h
index 9e8bfb7e..c49a28eb 100644
--- a/config_misc.h
+++ b/config_misc.h
@@ -194,12 +194,15 @@
// Requires ifunc support: GCC 4.8, Binutils 2.20.1 and libc 2.11.1.
// Should work for Clang 7 and above: https://stackoverflow.com/q/39958935,
// but fails with Clang 10: https://bugs.llvm.org/show_bug.cgi?id=50025.
+// Should work with GCC 4.8.4 and 7.5.0 but does not:
+// https://travis-ci.org/github/noloader/cryptopp-cmake/jobs/767701720 and
+// https://travis-ci.org/github/noloader/cryptopp/jobs/767704226.
// Not available on Apple and Solaris platforms. Also see
// https://sourceware.org/glibc/wiki/GNU_IFUNC and
// https://gcc.gnu.org/onlinedocs/gcc/Function-Multiversioning.html.
#if !defined(CRYPTOPP_DISABLE_ASM)
# if defined(__i386__) || defined(__i686__) || defined(__amd64__)
-# if defined(__linux__) && (CRYPTOPP_GCC_VERSION >= 40800)
+# if defined(__linux__) && (CRYPTOPP_GCC_VERSION >= 80000)
# include <x86intrin.h>
# define CRYPTOPP_HAVE_ATTRIBUTE_TARGET 1
# define CRYPTOPP_TARGET_DEFAULT __attribute__ ((target ("default")))