diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1996-10-15 20:53:16 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1996-10-15 20:53:16 +0000 |
commit | 2086c0bae117604c3c78ce8abadaaa7fe09f0c4c (patch) | |
tree | 9e5a77f66f8f288453bbc7267c1ec3e11c8bccd6 | |
parent | 29b396f75f1b390f144777b478ee9dfe60f97610 (diff) | |
download | gcc-2086c0bae117604c3c78ce8abadaaa7fe09f0c4c.zip gcc-2086c0bae117604c3c78ce8abadaaa7fe09f0c4c.tar.gz gcc-2086c0bae117604c3c78ce8abadaaa7fe09f0c4c.tar.bz2 |
Use SUBTARGET_CPP_SIZE_SPEC correctly
From-SVN: r12963
-rw-r--r-- | gcc/config/mips/iris6.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h index 965a4e2..ac57829 100644 --- a/gcc/config/mips/iris6.h +++ b/gcc/config/mips/iris6.h @@ -40,6 +40,13 @@ Boston, MA 02111-1307, USA. */ -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ \ -Asystem(unix) -Asystem(svr4) -Acpu(mips) -Amachine(sgi)" +#undef SUBTARGET_CPP_SIZE_SPEC +#define SUBTARGET_CPP_SIZE_SPEC "\ +%{mabi=32: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int} \ +%{mabi=n32: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int} \ +%{mabi=64: -D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long\\ int} \ +%{!mabi=32:%{!mabi=n32: %{!mabi=64: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int}}}" + /* We must make -mips3 do what -mlong64 used to do. */ /* ??? If no mipsX option given, but a mabi=X option is, then should set _MIPS_ISA based on the mabi=X option. */ @@ -71,10 +78,6 @@ Boston, MA 02111-1307, USA. */ %{mabi=64: -D_MIPS_SZPTR=64} \ %{!mabi=32: %{!mabi=n32: %{!mabi=64: -D_MIPS_SZPTR=32}}} \ %{!mips1:%{!mips2: -D_COMPILER_VERSION=601}} \ -%{mabi=32: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int} \ -%{mabi=n32: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int} \ -%{mabi=64: -D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long\\ int} \ -%{!mabi=32:%{!mabi=n32: %{!mabi=64: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int}}} \ %{!mips1:%{!mips2:%{!mips3:%{!mips4: -U__mips -D__mips=3}}}} \ %{mabi=32: -U__mips64} \ %{mabi=n32: -D__mips64} \ |