diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1996-10-16 11:18:57 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1996-10-16 11:18:57 -0700 |
commit | 600139d3eaa20facd03b9d06096ef49ba1ef25d3 (patch) | |
tree | 12294ebe11820a4c6be79f9842b43dbaac359424 | |
parent | 4801403e107d8c28757aa661f4ababc6b2fb7bf7 (diff) | |
download | gcc-600139d3eaa20facd03b9d06096ef49ba1ef25d3.zip gcc-600139d3eaa20facd03b9d06096ef49ba1ef25d3.tar.gz gcc-600139d3eaa20facd03b9d06096ef49ba1ef25d3.tar.bz2 |
(CPP_PREDEFINES): Add -D_LONGLONG.
(CPP_SPECS): Remove -D_LONGLONG.
From-SVN: r12969
-rw-r--r-- | gcc/config/mips/iris6.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h index ac57829..395f6ba 100644 --- a/gcc/config/mips/iris6.h +++ b/gcc/config/mips/iris6.h @@ -34,10 +34,14 @@ Boston, MA 02111-1307, USA. */ #undef TARGET_LONG64 #define TARGET_LONG64 (mips_abi == ABI_64) +/* We must pass -D_LONGLONG always, even when -ansi is used, because irix6 + system header files require it. This is OK, because gcc never warns + when long long is used in system header files. Alternatively, we can + add support for the SGI builtin type __long_long. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES \ "-Dunix -Dmips -Dsgi -Dhost_mips -DMIPSEB -D_MIPSEB -DSYSTYPE_SVR4 \ - -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ \ + -D_LONGLONG -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ \ -Asystem(unix) -Asystem(svr4) -Acpu(mips) -Amachine(sgi)" #undef SUBTARGET_CPP_SIZE_SPEC @@ -57,7 +61,7 @@ Boston, MA 02111-1307, USA. */ /* ??? Same for __SIZE_TYPE and __PTRDIFF_TYPE. */ #undef SUBTARGET_CPP_SPEC #define SUBTARGET_CPP_SPEC "\ -%{!ansi:-D__EXTENSIONS__ -D_SGI_SOURCE -D_LONGLONG} \ +%{!ansi:-D__EXTENSIONS__ -D_SGI_SOURCE} \ %{mfp32: -D_MIPS_FPSET=16}%{!mfp32: -D_MIPS_FPSET=32} \ %{mips1: -D_MIPS_ISA=_MIPS_ISA_MIPS1} \ %{mips2: -D_MIPS_ISA=_MIPS_ISA_MIPS2} \ |