summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-06-06 23:24:31 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-06-06 23:24:31 +0000
commitecf89856dd4168d4429f9055d034128389bbf068 (patch)
treef946ae4b15548cb57e982587112c562853cb532b /gcc
parentb55005b01cb00a8d03cd786835f4fa223c26d4bc (diff)
downloadppe42-gcc-ecf89856dd4168d4429f9055d034128389bbf068.tar.gz
ppe42-gcc-ecf89856dd4168d4429f9055d034128389bbf068.zip
(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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/m68k/m68k.h21
1 files 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
OpenPOWER on IntegriCloud