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]

Patch installed to remove #elif from mips.h


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

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