re PR middle-end/30789 (complex folding inexact)
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 14 Aug 2009 16:44:36 +0000 (16:44 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 14 Aug 2009 16:44:36 +0000 (16:44 +0000)
commit2f440f6abab72e52aed64f86cd1af2ac8d4ece32
treed56a6176a6e43d637f2ab3512ce5fd889d048d90
parentfe83055dfa93a7a68ba98042f2ffcb7d6b140154
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
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/real.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/builtin-math-7.c [new file with mode: 0644]