Commit 75b107f5 by Ian Bolton Committed by Ian Bolton

Don't override -ffp-contract=fast if -funsafe-math-optimizations

From-SVN: r208474
parent 747425d0
2014-03-11 Ian Bolton <ian.bolton@arm.com>
* c-opts.c (c_common_post_options): Don't override
-ffp-contract=fast if unsafe-math-optimizations is on.
2014-03-08 Paulo Matos <paulo@matos-sorge.com>
* c.opt: Enable LTO FE for fshort-double.
......
......@@ -834,7 +834,8 @@ c_common_post_options (const char **pfilename)
if (flag_iso
&& !c_dialect_cxx ()
&& (global_options_set.x_flag_fp_contract_mode
== (enum fp_contract_mode) 0))
== (enum fp_contract_mode) 0)
&& flag_unsafe_math_optimizations == 0)
flag_fp_contract_mode = FP_CONTRACT_OFF;
/* By default we use C99 inline semantics in GNU99 or C99 mode. C99
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment