]> gcc.gnu.org Git - gcc.git/commitdiff
(override_options): Set default for -mcpu to PROCESSOR_DEFAULT_STRING.
authorStan Cox <coxs@gnu.org>
Fri, 13 Dec 1996 21:31:19 +0000 (21:31 +0000)
committerStan Cox <coxs@gnu.org>
Fri, 13 Dec 1996 21:31:19 +0000 (21:31 +0000)
From-SVN: r13308

gcc/config/i386/i386.c

index d9edb71aae3d5427fef9e46795b1cdf9bab6f49b..cfeb5eb8101265da3ddbc3ef1765a01fc955df59 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)
     {
This page took 0.068862 seconds and 5 git commands to generate.