This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
PATCH: Linux/MIPS CPP_SPECs fix.
- To: gcc at gcc dot gnu dot org
- Subject: PATCH: Linux/MIPS CPP_SPECs fix.
- From: Ralf Baechle <ralf at gnu dot org>
- Date: Sun, 29 Oct 2000 16:38:28 +0100
- Cc: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>, Andreas Jaeger <aj at suse dot de>, Keith M Wesolowski <wesolows at foobazco dot org>, Ulf Carlsson <ulfc at engr dot sgi dot com>
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} \