aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/vax
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-10-06 22:47:32 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-10-06 22:47:32 +0000
commit70a01792d85cdeb0baefdccc840444735f8cd396 (patch)
tree972d12bd6146ca789109687592f05e46952b0f67 /gcc/config/vax
parentba9b12d1d29019dc0f200cbfaea484e7a3762481 (diff)
downloadgcc-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/config/vax')
-rw-r--r--gcc/config/vax/vax.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c
index 4f8ffb0..a4ec091 100644
--- a/gcc/config/vax/vax.c
+++ b/gcc/config/vax/vax.c
@@ -86,9 +86,8 @@ override_options (void)
{
/* We're VAX floating point, not IEEE floating point. */
memset (real_format_for_mode, 0, sizeof real_format_for_mode);
- real_format_for_mode[SFmode - QFmode] = &vax_f_format;
- real_format_for_mode[DFmode - QFmode]
- = (TARGET_G_FLOAT ? &vax_g_format : &vax_d_format);
+ REAL_MODE_FORMAT (SFmode) = &vax_f_format;
+ REAL_MODE_FORMAT (DFmode) = (TARGET_G_FLOAT ? &vax_g_format : &vax_d_format);
}
/* Generate the assembly code for function entry. FILE is a stdio