diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-09-28 15:48:30 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-09-28 15:48:30 -0700 |
commit | bc9e02aec783f65979062e0d93d798f72bf10756 (patch) | |
tree | 0c27cc85a1e61e1dc0ca6e5d740fae1dbf400fb3 | |
parent | 303b6ca3e8b075098c1d17147d198849d5868a1f (diff) | |
download | gcc-bc9e02aec783f65979062e0d93d798f72bf10756.zip gcc-bc9e02aec783f65979062e0d93d798f72bf10756.tar.gz gcc-bc9e02aec783f65979062e0d93d798f72bf10756.tar.bz2 |
(CPP_SPEC): Handle -mf930 and -mf934.
(TARGET_SWITCHES): Add -mf930 and -mf934 options. -msparclite no
longer does -mno-fpu.
From-SVN: r5510
-rw-r--r-- | gcc/config/sparc/sparc.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index c615eaf..c841eff 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -34,7 +34,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k}" /* Define macros to distinguish architectures. */ -#define CPP_SPEC "%{msparclite:-D__sparclite__} %{mv8:-D__sparc_v8__}" +#define CPP_SPEC "%{msparclite:-D__sparclite__} %{mf930:-D__sparclite__} \ +%{mf934:-D__sparclite__} %{mv8:-D__sparc_v8__}" /* Prevent error on `-sun4' and `-target sun4' options. */ /* This used to translate -dalign to -malign, but that is no good @@ -114,7 +115,9 @@ extern int target_flags; /* Nonzero means that we should generate code for a v8 sparc. */ #define TARGET_V8 (target_flags & 64) -/* Nonzero means that we should generate code for a sparclite. */ +/* Nonzero means that we should generate code for a sparclite. + This enables the sparclite specific instructions, but does not affect + whether FPU instructions are emitted. */ #define TARGET_SPARCLITE (target_flags & 128) /* Nonzero means that we should generate code using a flat register window @@ -139,6 +142,11 @@ extern int target_flags; where VALUE is the bits to set or minus the bits to clear. An empty string NAME is used to identify the default VALUE. */ +/* The Fujitsu MB86930 is the original sparclite chip, with no fpu. + The Fujitsu MB86934 is the recent sparclite chip, with an fup. + We use -mf930 and -mf934 options to choose which. + ??? These should perhaps be -mcpu= options. */ + #define TARGET_SWITCHES \ { {"fpu", 1}, \ {"no-fpu", -1}, \ @@ -151,13 +159,14 @@ extern int target_flags; {"v8", 64}, \ {"no-v8", -64}, \ {"sparclite", 128}, \ - {"sparclite", -1}, \ {"no-sparclite", -128}, \ - {"no-sparclite", 1}, \ /* {"frw", 256}, */ \ /* {"no-frw", -256}, */ \ /* {"frw-compat", 256+512}, */ \ /* {"no-frw-compat", -(256+512)}, */ \ + {"f930", 128}, \ + {"f930", -1}, \ + {"f934", 128}, \ SUBTARGET_SWITCHES \ { "", TARGET_DEFAULT}} |