PATCH: Linux/MIPS CPP_SPECs fix.

Ralf Baechle ralf@gnu.org
Sun Oct 29 14:51:00 GMT 2000


Re-sending this, this times to gcc-patches instead of gcc.

mips{,el}-linux default to the 32 bit ABI but we were predefining _ABIN32
indicating we're N32.  Below patch fixes this.  Please apply,

  Ralf

2000-10-29  Ralf Baechle <ralf@gnu.org>

        * config/mips/linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change
        SUBTARGET_CPP_SPEC apropriatly.

diff -urN gcc-cygnus/gcc/config/mips/linux.h gcc/gcc/config/mips/linux.h
--- gcc-cygnus/gcc/config/mips/linux.h	Tue Aug 29 02:46:28 2000
+++ gcc/gcc/config/mips/linux.h	Sun Oct 29 16:32:55 2000
@@ -99,7 +99,7 @@
 %{mabi=32: -D_MIPS_SIM=_MIPS_SIM_ABI32}	\
 %{mabi=n32: -D_ABIN32=2 -D_MIPS_SIM=_ABIN32} \
 %{mabi=64: -D_ABI64=3 -D_MIPS_SIM=_ABI64} \
-%{!mabi*: -D_ABIN32=2 -D_MIPS_SIM=_ABIN32} \
+%{!mabi*: -D_MIPS_SIM=_MIPS_SIM_ABI32}	\
 %{!mint64: -D_MIPS_SZINT=32}%{mint64: -D_MIPS_SZINT=64} \
 %{mabi=32: -D_MIPS_SZLONG=32} \
 %{mabi=n32: -D_MIPS_SZLONG=32} \


More information about the Gcc-patches mailing list