From d653961594999362dd0e7eb284e4f4deb40ae415 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 6 Jun 1996 19:24:31 -0400 Subject: [PATCH] (TARGET_SWITCHES): Group all floating point options. When an fp option is selected, unset bits used for other mutually exclusive fp options. (OVERRIDE_OPTIONS): No longer need special case for SUPPORT_SUN_FPA, as the bits used for 68881 and SKY are cleared by new entries in TARGET_SWITCHES. From-SVN: r12193 --- gcc/config/m68k/m68k.h | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index 0e3ee4927ac..8111072856a 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -123,20 +123,23 @@ extern int target_flags; { "c68020", - (MASK_68060|MASK_68040)}, \ { "68020", (MASK_68020|MASK_BITFIELD)}, \ { "c68020", (MASK_68020|MASK_BITFIELD)}, \ - { "68881", MASK_68881}, \ - { "bitfield", MASK_BITFIELD}, \ { "68000", - (MASK_68060|MASK_68040|MASK_68020|MASK_BITFIELD)}, \ { "c68000", - (MASK_68060|MASK_68040|MASK_68020|MASK_BITFIELD)}, \ - { "soft-float", - (MASK_68040_ONLY|MASK_68881)}, \ + { "bitfield", MASK_BITFIELD}, \ { "nobitfield", - MASK_BITFIELD}, \ { "rtd", MASK_RTD}, \ { "nortd", - MASK_RTD}, \ { "short", MASK_SHORT}, \ { "noshort", - MASK_SHORT}, \ + { "fpa", -(MASK_SKY|MASK_68040_ONLY|MASK_68881)}, \ { "fpa", MASK_FPA}, \ { "nofpa", - MASK_FPA}, \ + { "sky", -(MASK_FPA|MASK_68040_ONLY|MASK_68881)}, \ { "sky", MASK_SKY}, \ { "nosky", - MASK_SKY}, \ + { "68881" - (MASK_FPA|MASK_SKY)}, \ + { "68881", MASK_68881}, \ + { "soft-float", - (MASK_FPA|MASK_SKY|MASK_68040_ONLY|MASK_68881)}, \ { "68020-40", (MASK_BITFIELD|MASK_68881|MASK_68020)}, \ { "68030", - (MASK_68040|MASK_68060)}, \ { "68030", (MASK_68020|MASK_BITFIELD)}, \ @@ -158,24 +161,12 @@ extern int target_flags; /* This is meant to be redefined in the host dependent files */ #define SUBTARGET_SWITCHES -#ifdef SUPPORT_SUN_FPA -/* Blow away 68881 flag silently on TARGET_FPA (since we can't clear - any bits in TARGET_SWITCHES above) */ #define OVERRIDE_OPTIONS \ { \ - if (TARGET_FPA) target_flags &= ~ MASK_68881; \ if (! TARGET_68020 && flag_pic == 2) \ error("-fPIC is not currently supported on the 68000 or 68010\n"); \ SUBTARGET_OVERRIDE_OPTIONS; \ } -#else -#define OVERRIDE_OPTIONS \ -{ \ - if (! TARGET_68020 && flag_pic == 2) \ - error("-fPIC is not currently supported on the 68000 or 68010\n"); \ - SUBTARGET_OVERRIDE_OPTIONS; \ -} -#endif /* defined SUPPORT_SUN_FPA */ /* This is meant to be redefined in the host dependent files */ #define SUBTARGET_OVERRIDE_OPTIONS -- 2.30.2