Commit 84ab3bfb by Jim Wilson

(TARGET_SWITCHES): Add SUBTARGET_SWITCHES.

(OVERRIDE_OPTIONS): Add SUBTARGET_OVERRIDE_OPTIONS.
(SUBTARGET_SWITCHES, SUBTARGET_OVERRIDE_OPTIONS): Define.

From-SVN: r4954
parent 1f1ff018
......@@ -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 */
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment