diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2003-10-06 22:47:32 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-10-06 22:47:32 +0000 |
commit | 70a01792d85cdeb0baefdccc840444735f8cd396 (patch) | |
tree | 972d12bd6146ca789109687592f05e46952b0f67 /gcc/optabs.c | |
parent | ba9b12d1d29019dc0f200cbfaea484e7a3762481 (diff) | |
download | gcc-70a01792d85cdeb0baefdccc840444735f8cd396.zip gcc-70a01792d85cdeb0baefdccc840444735f8cd396.tar.gz gcc-70a01792d85cdeb0baefdccc840444735f8cd396.tar.bz2 |
real.h (REAL_MODE_FORMAT): New macro.
* real.h (REAL_MODE_FORMAT): New macro.
* c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
* config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
* config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
* config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
* config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
directly to real_format_for_mode array, wherever possible.
From-SVN: r72168
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 7f8affc..f05b999 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -2582,7 +2582,7 @@ expand_unop (enum machine_mode mode, optab unoptab, rtx op0, rtx target, if (unoptab->code == NEG && class == MODE_FLOAT && GET_MODE_BITSIZE (mode) <= 2 * HOST_BITS_PER_WIDE_INT) { - const struct real_format *fmt = real_format_for_mode[mode - QFmode]; + const struct real_format *fmt = REAL_MODE_FORMAT (mode); enum machine_mode imode = int_mode_for_mode (mode); int bitpos = (fmt != 0) ? fmt->signbit : -1; @@ -2756,7 +2756,7 @@ expand_abs_nojump (enum machine_mode mode, rtx op0, rtx target, if (GET_MODE_CLASS (mode) == MODE_FLOAT && GET_MODE_BITSIZE (mode) <= 2 * HOST_BITS_PER_WIDE_INT) { - const struct real_format *fmt = real_format_for_mode[mode - QFmode]; + const struct real_format *fmt = REAL_MODE_FORMAT (mode); enum machine_mode imode = int_mode_for_mode (mode); int bitpos = (fmt != 0) ? fmt->signbit : -1; |