aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-08-11 12:56:59 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-08-11 12:56:59 -0400
commitba558a85d2d6ee518d9904ad41bdebada52749ac (patch)
tree6431612f6f423b96447d20569cee687f862f8580
parent5582b006ea943b962f600013e1cd264110239765 (diff)
downloadgcc-ba558a85d2d6ee518d9904ad41bdebada52749ac.zip
gcc-ba558a85d2d6ee518d9904ad41bdebada52749ac.tar.gz
gcc-ba558a85d2d6ee518d9904ad41bdebada52749ac.tar.bz2
(expand_builtin): Relegate sin and cos to ffast-math.
From-SVN: r7886
-rw-r--r--gcc/expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index a657e82..06de199 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6845,6 +6845,9 @@ expand_builtin (exp, target, subtarget, mode, ignore)
case BUILT_IN_SIN:
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:
/* If not optimizing, call the library function. */
if (! optimize)