From ba558a85d2d6ee518d9904ad41bdebada52749ac Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 11 Aug 1994 12:56:59 -0400 Subject: [PATCH] (expand_builtin): Relegate sin and cos to ffast-math. From-SVN: r7886 --- gcc/expr.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.7.4