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

From-SVN: r208474
This commit is contained in:
Ian Bolton 2014-03-11 09:41:20 +00:00 committed by Ian Bolton
parent 747425d0e3
commit 75b107f594
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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