OSDN Git Service

(override_options): Set default for -mcpu to PROCESSOR_DEFAULT_STRING.
authorcoxs <coxs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Dec 1996 21:31:19 +0000 (21:31 +0000)
committercoxs <coxs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Dec 1996 21:31:19 +0000 (21:31 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13308 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i386/i386.c

index d9edb71..cfeb5eb 100644 (file)
@@ -216,10 +216,13 @@ override_options ()
        }
     }
 
-  /* Get the architectural level.  */
   if (ix86_arch_string == (char *)0)
+    {
       ix86_arch_string = PROCESSOR_PENTIUM_STRING;
-
+      if (ix86_cpu_string == (char *)0)
+       ix86_cpu_string = PROCESSOR_DEFAULT_STRING;
+    }
+  
   for (i = 0; i < ptt_size; i++)
     if (! strcmp (ix86_arch_string, processor_target_table[i].name))
       {
@@ -257,7 +260,6 @@ override_options ()
       ix86_cpu_string = PROCESSOR_DEFAULT_STRING;
       ix86_cpu = PROCESSOR_DEFAULT;
     }
-
   /* Validate -mregparm= value */
   if (i386_regparm_string)
     {