* 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
+2003-10-06 Zack Weinberg <zack@codesourcery.com>
+
+ * 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.
+
2003-10-06 Devang Patel <dpatel@apple.com>
* dwarf2out.c (is_main_source): Remove variable.
(dwarf2out_start_source_file): Do not check is_main_source.
Do not reset is_main_source.
(dwarf2out_init): Do not initialize is_main_source.
-
+
2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
2003-10-05 Andrew Pinski <apinski@apple.com>
- * config/darwin.c (machopic_non_lazy_ptr_name):
+ * config/darwin.c (machopic_non_lazy_ptr_name):
Change strcat to memcpy and add length together.
(machopic_stub_name): Likewise.
* gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
-
+
* config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
Convert to ISO C90 function declarations and definitions.
int dig, min_10_exp, max_10_exp;
int decimal_dig;
- fmt = real_format_for_mode[TYPE_MODE (type) - QFmode];
+ fmt = REAL_MODE_FORMAT (TYPE_MODE (type));
/* The radix of the exponent representation. */
if (type == float_type_node)
/* 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;
}
}
\f
/* 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;
}
{
/* 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;
}
/* ===================================================== */
#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)
/* 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. */
}
/* 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;
}
\f
/* Return true if OP can be used as the source of an fp move insn. */
/* 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;
}
\f
static enum attr_itanium_class ia64_safe_itanium_class (rtx);
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;
}
\f
/* Structure describing stack frame layout. */
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;
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 ();
{
/* 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
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;
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;
{
const struct real_format *fmt;
- fmt = real_format_for_mode[mode - QFmode];
+ fmt = REAL_MODE_FORMAT (mode);
if (fmt == NULL)
abort ();
const struct real_format *fmt;
int np2;
- fmt = real_format_for_mode[mode - QFmode];
+ fmt = REAL_MODE_FORMAT (mode);
if (fmt == NULL)
abort ();
{
const struct real_format *fmt;
- fmt = real_format_for_mode[mode - QFmode];
+ fmt = REAL_MODE_FORMAT (mode);
if (fmt == NULL)
abort ();
{
const struct real_format *fmt;
- fmt = real_format_for_mode[mode - QFmode];
+ fmt = REAL_MODE_FORMAT (mode);
if (fmt == NULL)
abort ();
{
const struct real_format *fmt;
- fmt = real_format_for_mode[mode - QFmode];
+ fmt = REAL_MODE_FORMAT (mode);
if (fmt == NULL)
abort ();
{
const struct real_format *fmt;
- fmt = real_format_for_mode[mode - QFmode];
+ fmt = REAL_MODE_FORMAT (mode);
if (fmt == NULL)
return 0;
Indexed by MODE - QFmode. */
extern const struct real_format *real_format_for_mode[TFmode - QFmode + 1];
+#define REAL_MODE_FORMAT(MODE) (real_format_for_mode[(MODE) - QFmode])
/* Declare functions in real.c. */