summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2021-09-30 18:34:57 (GMT)
committermakise-homura <akemi_homura@kurisa.ch>2021-09-30 20:19:44 (GMT)
commit77c237d21943363ebe17b9fefe5ef1e62fa374a1 (patch)
tree2997012933f912f68932e729f94a0312bc7e255c /Utilities
parent89d134c61d4cc78bfb9585c80144ce2acae14cfa (diff)
downloadCMake-77c237d21943363ebe17b9fefe5ef1e62fa374a1.zip
CMake-77c237d21943363ebe17b9fefe5ef1e62fa374a1.tar.gz
CMake-77c237d21943363ebe17b9fefe5ef1e62fa374a1.tar.bz2
zstd: Fix incorrect pragma error on LCC compiler
LCC (Elbrus C Compiler) doesn't understand some of GCC pragmas, despite of declaring itself GCC-aware. The pragma of subject is the one that forbids vectorizing. Actually, LCC don't vectorize anything unless explicitly said to, so this pragma may be safely omitted and thus not cause an error. This patch does this.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmzstd/lib/common/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmzstd/lib/common/compiler.h b/Utilities/cmzstd/lib/common/compiler.h
index 95e9483..1b864ea 100644
--- a/Utilities/cmzstd/lib/common/compiler.h
+++ b/Utilities/cmzstd/lib/common/compiler.h
@@ -139,7 +139,7 @@
/* vectorization
* older GCC (pre gcc-4.3 picked as the cutoff) uses a different syntax */
-#if !defined(__INTEL_COMPILER) && !defined(__clang__) && defined(__GNUC__)
+#if !defined(__INTEL_COMPILER) && !defined(__clang__) && !defined(__LCC__) && defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ > 3) || (__GNUC__ >= 5)
# define DONT_VECTORIZE __attribute__((optimize("no-tree-vectorize")))
# else