(override_options): Delete #ifdef MIPS_CPU_DEFAULT code.
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 23 May 1995 20:59:57 +0000 (13:59 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 23 May 1995 20:59:57 +0000 (13:59 -0700)
Add #ifdef MIPS_CPU_DEFAULT_STRING code before the first
mips_cpu_string test.

From-SVN: r9779

gcc/config/mips/mips.c

index 94a2210285f592455a061b46ee64aad560d01f79..c6c146a8525d53d8ff65b2f58f8178df61ec029e 100644 (file)
@@ -3160,6 +3160,15 @@ override_options ()
       mips_isa = 1;
     }
 
+#ifdef MIPS_CPU_STRING_DEFAULT
+  /* ??? There is a minor inconsistency here.  If the user specifies an ISA
+     greater than that supported by the default processor, then the user gets
+     an error.  Normally, the compiler will just default to the base level cpu
+     for the indicated isa.  */
+  if (mips_cpu_string == (char *)0)
+    mips_cpu_string = MIPS_CPU_STRING_DEFAULT;
+#endif
+
   /* Identify the processor type */
   if (mips_cpu_string == (char *)0
       || !strcmp (mips_cpu_string, "default")
@@ -3184,14 +3193,6 @@ override_options ()
          mips_cpu = PROCESSOR_R8000;
          break;
        }
-
-#ifdef MIPS_CPU_DEFAULT
-      if (mips_isa_string == (char *)0)
-       {
-         mips_cpu_string = MIPS_CPU_STRING_DEFAULT;
-         mips_cpu = MIPS_CPU_DEFAULT;
-       }
-#endif
     }
 
   else