Commit ba558a85 by Richard Kenner

(expand_builtin): Relegate sin and cos to ffast-math.

From-SVN: r7886
parent 5582b006
...@@ -6845,6 +6845,9 @@ expand_builtin (exp, target, subtarget, mode, ignore) ...@@ -6845,6 +6845,9 @@ expand_builtin (exp, target, subtarget, mode, ignore)
case BUILT_IN_SIN: case BUILT_IN_SIN:
case BUILT_IN_COS: case BUILT_IN_COS:
/* Treat these like sqrt, but only if the user asks for them. */
if (! flag_fast_math)
break;
case BUILT_IN_FSQRT: case BUILT_IN_FSQRT:
/* If not optimizing, call the library function. */ /* If not optimizing, call the library function. */
if (! optimize) if (! optimize)
......
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