summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-14 16:44:36 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-14 16:44:36 +0000
commit63e8969836b3c9a5e0c843659bfcae2969218999 (patch)
treed56a6176a6e43d637f2ab3512ce5fd889d048d90 /gcc/real.h
parentc937fbeaac7bffbf2f303022c416c8e0b63697fa (diff)
downloadgcc-63e8969836b3c9a5e0c843659bfcae2969218999.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150760 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 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