[Patch] Turn -fexcess-precision=fast on when in -ffast-math
authorJames Greenhalgh <james.greenhalgh@arm.com>
Tue, 20 Dec 2016 16:17:27 +0000 (16:17 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Tue, 20 Dec 2016 16:17:27 +0000 (16:17 +0000)
commit314e1b47dceafda7a52650915648703236bc4f23
treeb7b1211e081da6609886060d597693664c100be5
parentaa90531ea4cfe2ceb9150943f601b67907b27811
[Patch] Turn -fexcess-precision=fast on when in -ffast-math

* common.opt (excess_precision): Tag as SetByCombined.
* opts.c (set_fast_math_flags): Also set
flag_excess_precision_cmdline.
(fast_math_flags_set_p): Also check flag_excess_precision_cmdline.
* doc/invoke.texi (-fexcess-precision): Drop text saying the
option has no effect under -ffast-math, make it clear that
-ffast-math will cause -fexcess-precision=fast by default even for
standards compliant modes.
(-ffast-math): Document that this sets -fexcess-precision=fast.

From-SVN: r243824
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/opts.c