Skip to content

Remove: -ffast-math in gfortran default release flags #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 20, 2020
Merged

Remove: -ffast-math in gfortran default release flags #315

merged 2 commits into from
Dec 20, 2020

Conversation

LKedward
Copy link
Member

I think it has been agreed generally in previous discussions that -ffast-math should be an opt-in option by the package maintainer rather than enabled by default. This PR therefore removes -ffast-math from the gfortran default flags for --release.

I encountered this because the stdlib testsuite does not pass with fpm test --release when using stdlib with fpm.

@awvwgk
Copy link
Member

awvwgk commented Dec 18, 2020

For consistency they should be removed from the Haskell version as well:

, "-ffast-math"

, "-ffast-math"

, "-ffast-math"

Copy link
Member

@milancurcic milancurcic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, they shouldn't have entered the default.

@LKedward LKedward merged commit 5ab3daf into fortran-lang:master Dec 20, 2020
@LKedward LKedward deleted the remove-default-fast-math branch December 20, 2020 11:39
@certik certik mentioned this pull request Dec 23, 2020
@certik
Copy link
Member

certik commented Dec 23, 2020

This PR is fine, as a quick fix, but it is not the long term solution because we are leaving a lot of performance on the table. So I opened an issue #329 to brainstorm a solution to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants