1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add workaround for Fortran frontend to GCC 10.

PR:		246700
This commit is contained in:
Mark Linimon 2020-11-17 22:17:27 +00:00
parent 9657fec72c
commit 8f6de3a4e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=555594

View File

@ -75,6 +75,11 @@ CFLAGS+= ${FPIC}
FFLAGS+= ${FPIC}
SVERSION= 2
.if ${GCC_DEFAULT} >= 10
# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
FFLAGS+= -fallow-argument-mismatch
.endif
.if defined(WITH_OPTIMIZED_FLAGS)
.if ${ARCH} == "amd64"
FFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time