Disable gfortran tree vectorizer to avoid gcc11+ miscompilation at O3
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Fri, 30 Jul 2021 12:44:54 +0000 (14:44 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jul 2021 12:44:54 +0000 (14:44 +0200)
ctest/Makefile

index 15c83a9079d122299f6c2d6905d4e28ebce5cb2b..c5e1094da0da3198e46f2e0bdf6dbfabf3314b87 100644 (file)
@@ -6,6 +6,9 @@ TOPDIR = ..
 include $(TOPDIR)/Makefile.system
 
 override CFLAGS += -DADD$(BU) -DCBLAS
+ifeq ($(F_COMPILER),GFORTRAN)
+       override FFLAGS += -fno-tree-vectorize
+endif
 override TARGET_ARCH=
 override TARGET_MACH=