summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-16 17:46:30 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-16 17:46:30 +0000
commitc699fab884aeab5596ec5fc0d9e46f1f55ae3e76 (patch)
tree4349ce005fc992ee956833590b2672bb085de620 /gcc/real.h
parent782758e14b376bc835b3d636e72999a6d4739aa0 (diff)
downloadgcc-c699fab884aeab5596ec5fc0d9e46f1f55ae3e76.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149716 138bc75d-0d04-0410-961f-82ee72b054a4
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 0fc915cae5b..884a663c83f 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"