diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2009-07-16 17:46:30 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2009-07-16 17:46:30 +0000 |
commit | a41d064d96aa33de2cbc5ee6bf1f3f9fc76ef528 (patch) | |
tree | 4349ce005fc992ee956833590b2672bb085de620 /gcc/real.h | |
parent | d19cb53b51428dd2ec0913545ab3b1f4d404b397 (diff) | |
download | gcc-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |