This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed to remove #elif from mips.h
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch installed to remove #elif from mips.h
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 4 Feb 2001 07:22:47 -0500 (EST)
The new #elif -Wtraditional check provoked over 470 warnings on an
Irix6 bootstrap because of some #elif uses in mips.h. <<mips.h is
included in every file, this got painful real fast. :-)>>
I removed the #elif's and formatted it for easier reading.
Bootstrapped on mips-irix6.2 and installed as obvious.
--Kaveh
2001-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* mips.h (MULTILIB_ISA_DEFAULT): Don't use #elif.
--- egcs-CVS20010202/gcc/config/mips/mips.h~ Mon Jan 1 16:27:12 2001
+++ egcs-CVS20010202/gcc/config/mips/mips.h Fri Feb 2 11:50:43 2001
@@ -502,17 +502,23 @@ extern void sbss_section PARAMS ((void)
#endif
#ifndef MULTILIB_ISA_DEFAULT
-#if MIPS_ISA_DEFAULT == 1
-#define MULTILIB_ISA_DEFAULT "mips1"
-#elif MIPS_ISA_DEFAULT == 2
-#define MULTILIB_ISA_DEFAULT "mips2"
-#elif MIPS_ISA_DEFAULT == 3
-#define MULTILIB_ISA_DEFAULT "mips3"
-#elif MIPS_ISA_DEFAULT == 4
-#define MULTILIB_ISA_DEFAULT "mips4"
-#else
-#define MULTILIB_ISA_DEFAULT "mips1"
-#endif
+# if MIPS_ISA_DEFAULT == 1
+# define MULTILIB_ISA_DEFAULT "mips1"
+# else
+# if MIPS_ISA_DEFAULT == 2
+# define MULTILIB_ISA_DEFAULT "mips2"
+# else
+# if MIPS_ISA_DEFAULT == 3
+# define MULTILIB_ISA_DEFAULT "mips3"
+# else
+# if MIPS_ISA_DEFAULT == 4
+# define MULTILIB_ISA_DEFAULT "mips4"
+# else
+# define MULTILIB_ISA_DEFAULT "mips1"
+# endif
+# endif
+# endif
+# endif
#endif
#ifndef MULTILIB_DEFAULTS