diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2009-06-19 15:33:55 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2009-06-19 15:33:55 +0000 |
commit | eb6f9a86c5a7406cabd069093d34d435cf92bd13 (patch) | |
tree | 83e5c787fecb044f7803f22a3aa5b3d699b063b9 /gcc/fortran/trans-expr.c | |
parent | 642324bb16ffe88f0aa81c4ced9bdc1ba63471ab (diff) | |
download | gcc-eb6f9a86c5a7406cabd069093d34d435cf92bd13.zip gcc-eb6f9a86c5a7406cabd069093d34d435cf92bd13.tar.gz gcc-eb6f9a86c5a7406cabd069093d34d435cf92bd13.tar.bz2 |
gfortran.h (gfc_expr): Use mpc_t to represent complex numbers.
* gfortran.h (gfc_expr): Use mpc_t to represent complex numbers.
* arith.c, dump-parse-tree.c, expr.c, module.c, resolve.c,
simplify.c, target-memory.c, target-memory.h, trans-const.c,
trans-expr.c: Convert to mpc_t throughout.
From-SVN: r148711
Diffstat (limited to 'gcc/fortran/trans-expr.c')
-rw-r--r-- | gcc/fortran/trans-expr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c index 765c04f..d363e6d 100644 --- a/gcc/fortran/trans-expr.c +++ b/gcc/fortran/trans-expr.c @@ -4407,10 +4407,10 @@ is_zero_initializer_p (gfc_expr * expr) return expr->value.logical == 0; case BT_COMPLEX: - return mpfr_zero_p (expr->value.complex.r) - && MPFR_SIGN (expr->value.complex.r) >= 0 - && mpfr_zero_p (expr->value.complex.i) - && MPFR_SIGN (expr->value.complex.i) >= 0; + return mpfr_zero_p (mpc_realref (expr->value.complex)) + && MPFR_SIGN (mpc_realref (expr->value.complex)) >= 0 + && mpfr_zero_p (mpc_imagref (expr->value.complex)) + && MPFR_SIGN (mpc_imagref (expr->value.complex)) >= 0; default: break; |