From 84ab3bfb9b6f97e0a942014f40281c86760622d3 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 21 Jul 1993 14:18:45 -0700 Subject: [PATCH] (TARGET_SWITCHES): Add SUBTARGET_SWITCHES. (OVERRIDE_OPTIONS): Add SUBTARGET_OVERRIDE_OPTIONS. (SUBTARGET_SWITCHES, SUBTARGET_OVERRIDE_OPTIONS): Define. From-SVN: r4954 --- gcc/config/m68k/m68k.h | 9 +++++++++ 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 7a24ae34903..3650d3b2828 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 eb90e070b12..0e0f83ff6ee 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 */ -- 2.30.2