aboutsummaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2009-07-16 17:46:30 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2009-07-16 17:46:30 +0000
commita41d064d96aa33de2cbc5ee6bf1f3f9fc76ef528 (patch)
tree4349ce005fc992ee956833590b2672bb085de620 /gcc/real.h
parentd19cb53b51428dd2ec0913545ab3b1f4d404b397 (diff)
downloadgcc-a41d064d96aa33de2cbc5ee6bf1f3f9fc76ef528.zip
gcc-a41d064d96aa33de2cbc5ee6bf1f3f9fc76ef528.tar.gz
gcc-a41d064d96aa33de2cbc5ee6bf1f3f9fc76ef528.tar.bz2
builtins.c (do_mpc_arg2): New.
* builtins.c (do_mpc_arg2): New. (fold_builtin_2): Fold builtin cpow. * real.h (HAVE_mpc_pow): New. testsuite: * gcc.dg/torture/builtin-math-5.c: Add more cases. * gcc.dg/torture/builtin-math-6.c: Likewise. Depend on effective target "mpc_pow". * lib/target-supports.exp (check_effective_target_mpc_pow): New. From-SVN: r149716
Diffstat (limited to 'gcc/real.h')
-rw-r--r--gcc/real.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/real.h b/gcc/real.h
index 0fc915c..884a663 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -26,6 +26,9 @@
#include <mpfr.h>
#ifdef HAVE_mpc
#include <mpc.h>
+# if MPC_VERSION >= MPC_VERSION_NUM(0,6,1)
+# define HAVE_mpc_pow
+# endif
#endif
#endif
#include "machmode.h"