diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-07-21 14:18:45 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-07-21 14:18:45 -0700 |
commit | 84ab3bfb9b6f97e0a942014f40281c86760622d3 (patch) | |
tree | c4b80ba95ae47af2235a21a0255c82f9042ab5de | |
parent | 1f1ff018a2faa49d0d68d936521bd4fbf8891d45 (diff) | |
download | gcc-84ab3bfb9b6f97e0a942014f40281c86760622d3.zip gcc-84ab3bfb9b6f97e0a942014f40281c86760622d3.tar.gz gcc-84ab3bfb9b6f97e0a942014f40281c86760622d3.tar.bz2 |
(TARGET_SWITCHES): Add SUBTARGET_SWITCHES.
(OVERRIDE_OPTIONS): Add SUBTARGET_OVERRIDE_OPTIONS.
(SUBTARGET_SWITCHES, SUBTARGET_OVERRIDE_OPTIONS): Define.
From-SVN: r4954
-rw-r--r-- | gcc/config/m68k/m68k.h | 9 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.h | 14 |
2 files changed, 21 insertions, 2 deletions
diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index 7a24ae3..3650d3b 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -121,9 +121,13 @@ extern int target_flags; { "68030", -01400}, \ { "68030", 5}, \ { "68040", 01007}, \ + SUBTARGET_SWITCHES \ { "", TARGET_DEFAULT}} /* TARGET_DEFAULT is defined in sun*.h and isi.h, etc. */ +/* 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) */ @@ -132,14 +136,19 @@ extern int target_flags; if (TARGET_FPA) target_flags &= ~2; \ 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 /* target machine storage layout */ diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index eb90e07..0e0f83f 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -63,8 +63,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ the frame pointer (because the return address will get smashed). */ #define OVERRIDE_OPTIONS \ - do { if (profile_flag || profile_block_flag) \ - flag_omit_frame_pointer = 0, flag_pic = 0; } while (0) +{ \ + if (profile_flag || profile_block_flag) \ + flag_omit_frame_pointer = 0, flag_pic = 0; \ + SUBTARGET_OVERRIDE_OPTIONS \ + } + +/* This is meant to be redefined in the host dependent files */ +#define SUBTARGET_OVERRIDE_OPTIONS /* These compiler options take an argument. We ignore -target for now. */ @@ -152,9 +158,13 @@ extern int target_flags; /* {"no-frw", -256}, */ \ /* {"frw-compat", 256+512}, */ \ /* {"no-frw-compat", -(256+512)}, */ \ + SUBTARGET_SWITCHES \ { "", TARGET_DEFAULT}} #define TARGET_DEFAULT 3 + +/* This is meant to be redefined in the host dependent files */ +#define SUBTARGET_SWITCHES /* target machine storage layout */ |