aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2009-08-14 16:44:36 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2009-08-14 16:44:36 +0000
commit2f440f6abab72e52aed64f86cd1af2ac8d4ece32 (patch)
treed56a6176a6e43d637f2ab3512ce5fd889d048d90 /gcc/builtins.c
parentfe83055dfa93a7a68ba98042f2ffcb7d6b140154 (diff)
downloadgcc-2f440f6abab72e52aed64f86cd1af2ac8d4ece32.zip
gcc-2f440f6abab72e52aed64f86cd1af2ac8d4ece32.tar.gz
gcc-2f440f6abab72e52aed64f86cd1af2ac8d4ece32.tar.bz2
re PR middle-end/30789 (complex folding inexact)
PR middle-end/30789 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version. Move declaration... * real.h (do_mpc_arg2): ... here. * fold-const.c (const_binop): Use MPC for complex MULT_EXPR and RDIV_EXPR. testsuite: * gcc.dg/torture/builtin-math-7.c: New. From-SVN: r150760
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 1349c33..025c169 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -60,9 +60,6 @@ along with GCC; see the file COPYING3. If not see
#endif
#ifdef HAVE_mpc
static tree do_mpc_arg1 (tree, tree, int (*)(mpc_ptr, mpc_srcptr, mpc_rnd_t));
-#ifdef HAVE_mpc_pow
-static tree do_mpc_arg2 (tree, tree, tree, int (*)(mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t));
-#endif
#endif
/* Define the names of the builtin function types and codes. */
@@ -13824,8 +13821,8 @@ do_mpc_arg1 (tree arg, tree type, int (*func)(mpc_ptr, mpc_srcptr, mpc_rnd_t))
TYPE. We assume that function FUNC returns zero if the result
could be calculated exactly within the requested precision. */
-#ifdef HAVE_mpc_pow
-static tree
+#ifdef HAVE_mpc
+tree
do_mpc_arg2 (tree arg0, tree arg1, tree type,
int (*func)(mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t))
{