work around an optimizer bug in Xuantie's gfortran

This commit is contained in:
Martin Kroeker 2023-06-23 02:39:37 +02:00 committed by GitHub
parent f0ac1373a3
commit 81586e7b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1614,6 +1614,11 @@ ifdef OS_WINDOWS
LAPACK_FFLAGS := $(filter-out -fopenmp -mp -openmp -xopenmp=parallel,$(FFLAGS))
LAPACK_FPFLAGS := $(filter-out -fopenmp -mp -openmp -xopenmp=parallel,$(FPFLAGS))
else
ifeq ($(CORE), C910V)
LAPACK_FFLAGS := $(filter-out -O2 -O3,$(FFLAGS)
LAPACK_FFLAGS += -O1
LAPACK_FPFLAGS := $(FPFLAGS)
else
LAPACK_FFLAGS := $(FFLAGS)
LAPACK_FPFLAGS := $(FPFLAGS)
endif