diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2009-08-14 16:44:36 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2009-08-14 16:44:36 +0000 |
commit | 2f440f6abab72e52aed64f86cd1af2ac8d4ece32 (patch) | |
tree | d56a6176a6e43d637f2ab3512ce5fd889d048d90 /gcc/real.h | |
parent | fe83055dfa93a7a68ba98042f2ffcb7d6b140154 (diff) |
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/real.h')
-rw-r--r-- | gcc/real.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/real.h b/gcc/real.h index 884a663c83f..c93435b2524 100644 --- a/gcc/real.h +++ b/gcc/real.h @@ -26,6 +26,9 @@ #include <mpfr.h> #ifdef HAVE_mpc #include <mpc.h> +# ifdef HAVE_mpc +extern tree do_mpc_arg2 (tree, tree, tree, int (*)(mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t)); +# endif # if MPC_VERSION >= MPC_VERSION_NUM(0,6,1) # define HAVE_mpc_pow # endif |