From f8848468415637e25472ea8f5534c610a4a54e8e Mon Sep 17 00:00:00 2001 From: LKedward Date: Fri, 18 Dec 2020 11:06:49 +0000 Subject: [PATCH 1/2] Remove: -ffast-math in gfortran default release flags --- fpm/src/fpm_compiler.f90 | 2 -- 1 file changed, 2 deletions(-) diff --git a/fpm/src/fpm_compiler.f90 b/fpm/src/fpm_compiler.f90 index 0265985fa5..ba840e662d 100644 --- a/fpm/src/fpm_compiler.f90 +++ b/fpm/src/fpm_compiler.f90 @@ -54,7 +54,6 @@ subroutine add_compile_flag_defaults(build_name,compiler,model) & -Wimplicit-interface& & -fPIC& & -fmax-errors=1& - & -ffast-math& & -funroll-loops& &' mandatory=' -J '//modpath//' -I '//modpath @@ -76,7 +75,6 @@ subroutine add_compile_flag_defaults(build_name,compiler,model) & -Wimplicit-interface& & -fPIC& & -fmax-errors=1& - & -ffast-math& & -funroll-loops& & -fcoarray=single& &' From 2f5a8edefbf70b0753109eddc80314c0cad537c0 Mon Sep 17 00:00:00 2001 From: LKedward Date: Fri, 18 Dec 2020 13:47:04 +0000 Subject: [PATCH 2/2] Remove -ffast-math from Haskell fpm default release flags --- bootstrap/src/Fpm.hs | 3 --- 1 file changed, 3 deletions(-) diff --git a/bootstrap/src/Fpm.hs b/bootstrap/src/Fpm.hs index 10e14fefdd..56e2d90d0b 100644 --- a/bootstrap/src/Fpm.hs +++ b/bootstrap/src/Fpm.hs @@ -681,7 +681,6 @@ defineCompilerSettings specifiedFlags compiler release , "-fmax-errors=1" , "-O3" , "-march=native" - , "-ffast-math" , "-funroll-loops" , "-fcoarray=single" ] @@ -714,7 +713,6 @@ defineCompilerSettings specifiedFlags compiler release , "-fmax-errors=1" , "-O3" , "-march=native" - , "-ffast-math" , "-funroll-loops" ] else @@ -742,7 +740,6 @@ defineCompilerSettings specifiedFlags compiler release , "-Wimplicit-interface" , "-fPIC" , "-fmax-errors=1" - , "-ffast-math" , "-funroll-loops" ] else