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/config | |
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/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 6 | ||||
-rw-r--r-- | gcc/config/c4x/c4x.c | 4 | ||||
-rw-r--r-- | gcc/config/i370/i370.c | 4 | ||||
-rw-r--r-- | gcc/config/i386/freebsd.h | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 4 | ||||
-rw-r--r-- | gcc/config/i960/i960.c | 2 | ||||
-rw-r--r-- | gcc/config/ia64/ia64.c | 2 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.c | 2 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 8 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 | ||||
-rw-r--r-- | gcc/config/vax/vax.c | 5 |
11 files changed, 21 insertions, 22 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 2340358..f7998cc 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -472,9 +472,9 @@ override_options (void) /* Tell the compiler when we're using VAX floating point. */ if (TARGET_FLOAT_VAX) { - real_format_for_mode[SFmode - QFmode] = &vax_f_format; - real_format_for_mode[DFmode - QFmode] = &vax_g_format; - real_format_for_mode[TFmode - QFmode] = NULL; + REAL_MODE_FORMAT (SFmode) = &vax_f_format; + REAL_MODE_FORMAT (DFmode) = &vax_g_format; + REAL_MODE_FORMAT (TFmode) = NULL; } } diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c index ef58602..a50cbb8 100644 --- a/gcc/config/c4x/c4x.c +++ b/gcc/config/c4x/c4x.c @@ -317,8 +317,8 @@ c4x_override_options (void) /* We're C4X floating point, not IEEE floating point. */ memset (real_format_for_mode, 0, sizeof real_format_for_mode); - real_format_for_mode[QFmode - QFmode] = &c4x_single_format; - real_format_for_mode[HFmode - QFmode] = &c4x_extended_format; + REAL_MODE_FORMAT (QFmode) = &c4x_single_format; + REAL_MODE_FORMAT (HFmode) = &c4x_extended_format; } diff --git a/gcc/config/i370/i370.c b/gcc/config/i370/i370.c index eae8e34..0dfa3c4 100644 --- a/gcc/config/i370/i370.c +++ b/gcc/config/i370/i370.c @@ -213,8 +213,8 @@ override_options () { /* We're 370 floating point, not IEEE floating point. */ memset (real_format_for_mode, 0, sizeof real_format_for_mode); - real_format_for_mode[SFmode - QFmode] = &i370_single_format; - real_format_for_mode[DFmode - QFmode] = &i370_double_format; + REAL_MODE_FORMAT (SFmode) = &i370_single_format; + REAL_MODE_FORMAT (DFmode) = &i370_double_format; } /* ===================================================== */ diff --git a/gcc/config/i386/freebsd.h b/gcc/config/i386/freebsd.h index fb0438b..7396a47 100644 --- a/gcc/config/i386/freebsd.h +++ b/gcc/config/i386/freebsd.h @@ -137,9 +137,9 @@ Boston, MA 02111-1307, USA. */ #define SUBTARGET_OVERRIDE_OPTIONS \ do { \ if (!TARGET_64BIT) { \ - real_format_for_mode[XFmode - QFmode] \ + REAL_MODE_FORMAT (XFmode) \ = &ieee_extended_intel_96_round_53_format; \ - real_format_for_mode[TFmode - QFmode] \ + REAL_MODE_FORMAT (TFmode) \ = &ieee_extended_intel_96_round_53_format; \ } \ } while (0) diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 6ca6ee2..1c606df 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1113,8 +1113,8 @@ override_options (void) /* By default our XFmode is the 80-bit extended format. If we have use TFmode instead, it's also the 80-bit format, but with padding. */ - real_format_for_mode[XFmode - QFmode] = &ieee_extended_intel_96_format; - real_format_for_mode[TFmode - QFmode] = &ieee_extended_intel_128_format; + REAL_MODE_FORMAT (XFmode) = &ieee_extended_intel_96_format; + REAL_MODE_FORMAT (TFmode) = &ieee_extended_intel_128_format; /* Set the default values for switches whose default depends on TARGET_64BIT in case they weren't overwritten by command line options. */ diff --git a/gcc/config/i960/i960.c b/gcc/config/i960/i960.c index 88ac99e..f62693a 100644 --- a/gcc/config/i960/i960.c +++ b/gcc/config/i960/i960.c @@ -169,7 +169,7 @@ i960_initialize () } /* Tell the compiler which flavor of TFmode we're using. */ - real_format_for_mode[TFmode - QFmode] = &ieee_extended_intel_128_format; + REAL_MODE_FORMAT (TFmode) = &ieee_extended_intel_128_format; } /* Return true if OP can be used as the source of an fp move insn. */ diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index b10b9e9..b632d8b 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -4509,7 +4509,7 @@ ia64_override_options (void) /* Tell the compiler which flavor of TFmode we're using. */ if (INTEL_EXTENDED_IEEE_FORMAT) - real_format_for_mode[TFmode - QFmode] = &ieee_extended_intel_128_format; + REAL_MODE_FORMAT (TFmode) = &ieee_extended_intel_128_format; } static enum attr_itanium_class ia64_safe_itanium_class (rtx); diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index a20e129..105f241 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -212,7 +212,7 @@ override_options (void) SUBTARGET_OVERRIDE_OPTIONS; /* Tell the compiler which flavor of XFmode we're using. */ - real_format_for_mode[XFmode - QFmode] = &ieee_extended_motorola_format; + REAL_MODE_FORMAT (XFmode) = &ieee_extended_motorola_format; } /* Structure describing stack frame layout. */ diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 6c9d5ec..9478ec1 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -4859,12 +4859,12 @@ override_options (void) flag_delayed_branch = 0; } - real_format_for_mode[SFmode - QFmode] = &mips_single_format; - real_format_for_mode[DFmode - QFmode] = &mips_double_format; + REAL_MODE_FORMAT (SFmode) = &mips_single_format; + REAL_MODE_FORMAT (DFmode) = &mips_double_format; #ifdef MIPS_TFMODE_FORMAT - real_format_for_mode[TFmode - QFmode] = &MIPS_TFMODE_FORMAT; + REAL_MODE_FORMAT (TFmode) = &MIPS_TFMODE_FORMAT; #else - real_format_for_mode[TFmode - QFmode] = &mips_quad_format; + REAL_MODE_FORMAT (TFmode) = &mips_quad_format; #endif mips_print_operand_punct['?'] = 1; diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 1f037d9..4316b23 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -845,7 +845,7 @@ rs6000_override_options (const char *default_cpu) if (TARGET_LONG_DOUBLE_128 && (DEFAULT_ABI == ABI_AIX || DEFAULT_ABI == ABI_DARWIN)) - real_format_for_mode[TFmode - QFmode] = &ibm_extended_format; + REAL_MODE_FORMAT (TFmode) = &ibm_extended_format; /* Allocate an alias set for register saves & restores from stack. */ rs6000_sr_alias_set = new_alias_set (); 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 |