This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.4 PATCH: Don't use numeric values for _MIPS_SIM


I noticed that _tilib.c used magical constants instead of _ABI* which are
now universally available.

Bootstrapped without regressions on mips-sgi-irix6.5.

Ok for mainline?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Wed Oct 29 22:20:32 2003  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.

Index: gcc/config/mips/_tilib.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/_tilib.c,v
retrieving revision 1.3
diff -u -p -r1.3 _tilib.c
--- gcc/config/mips/_tilib.c	2 Feb 2003 19:55:15 -0000	1.3
+++ gcc/config/mips/_tilib.c	31 Oct 2003 17:33:07 -0000
@@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA.  */
 #include "coretypes.h"
 #include "tm.h"
 
-#if _MIPS_SIM == 2 /* N32 */ || _MIPS_SIM == 3 /* 64 */
+#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
 
 typedef int TItype __attribute__ ((mode (TI)));
 typedef int DItype __attribute__ ((mode (DI)));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]