diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-08 19:38:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-08 19:38:17 +0000 |
commit | 9d465faf92900b572286d6e9701632c2b289b451 (patch) | |
tree | a1a0850efce956decdd30ccf8cc67d64ab875d26 /gcc/go/gofrontend | |
parent | 82b37806c51b3fa8cffa4876c0609e6a6801e02d (diff) | |
download | gcc-9d465faf92900b572286d6e9701632c2b289b451.zip gcc-9d465faf92900b572286d6e9701632c2b289b451.tar.gz gcc-9d465faf92900b572286d6e9701632c2b289b451.tar.bz2 |
math: Compile with -mfancy-math-387 -funsafe-optimizations on x86.
From-SVN: r184015
Diffstat (limited to 'gcc/go/gofrontend')
-rw-r--r-- | gcc/go/gofrontend/expressions.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 395a375..8357ad7 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -10027,7 +10027,8 @@ Call_expression::do_get_tree(Translate_context* context) // This is to support builtin math functions when using 80387 math. tree excess_type = NULL_TREE; - if (TREE_CODE(fndecl) == FUNCTION_DECL + if (optimize + && TREE_CODE(fndecl) == FUNCTION_DECL && DECL_IS_BUILTIN(fndecl) && DECL_BUILT_IN_CLASS(fndecl) == BUILT_IN_NORMAL && nargs > 0 |