Skip to content
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

Make math-mode=fast no op, it's too dangerous #41638

Merged
merged 4 commits into from
Apr 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/jloptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ static const char opts[] =
#ifdef USE_POLLY
" --polly={yes|no} Enable or disable the polyhedral optimizer Polly (overrides @polly declaration)\n"
#endif
" --math-mode={ieee,fast} Disallow or enable unsafe floating point optimizations (overrides @fastmath declaration)\n\n"

// instrumentation options
" --code-coverage={none|user|all}, --code-coverage\n"
Expand Down Expand Up @@ -652,6 +651,8 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
if (!strcmp(optarg,"ieee"))
jl_options.fast_math = JL_OPTIONS_FAST_MATH_OFF;
else if (!strcmp(optarg,"fast"))
jl_options.fast_math = JL_OPTIONS_FAST_MATH_OFF;
PallHaraldsson marked this conversation as resolved.
Show resolved Hide resolved
else if (!strcmp(optarg,"broken"))
PallHaraldsson marked this conversation as resolved.
Show resolved Hide resolved
jl_options.fast_math = JL_OPTIONS_FAST_MATH_ON;
else if (!strcmp(optarg,"user"))
jl_options.fast_math = JL_OPTIONS_FAST_MATH_DEFAULT;
Expand Down