i386.c (override_options): Move loop to set default tuning to correct place.
authorJoseph Myers <joseph@codesourcery.com>
Sun, 14 Nov 2004 00:38:32 +0000 (00:38 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 14 Nov 2004 00:38:32 +0000 (00:38 +0000)
* config/i386/i386.c (override_options): Move loop to set default
tuning to correct place.

From-SVN: r90606

gcc/ChangeLog
gcc/config/i386/i386.c

index ba8cdf2bff0ad97a6c375a3f56be3907f0c40aae..a98165bef9fbca42fa0119345bea8c3be5fcb867 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-14  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/i386/i386.c (override_options): Move loop to set default
+       tuning to correct place.
+
 2004-11-13  Zak Kipling  <zak@transversal.com>
 
        PR target/18300
index 089957e830b921f109e7947ffdf1772a5984de55..997863731f969bf14d547d6e61b77b3ad5a17f71 100644 (file)
@@ -1305,6 +1305,19 @@ override_options (void)
          target_flags |= MASK_SSE3;
        if (processor_alias_table[i].flags & PTA_PREFETCH_SSE)
          x86_prefetch_sse = true;
+       if (TARGET_64BIT && !(processor_alias_table[i].flags & PTA_64BIT))
+         error ("CPU you selected does not support x86-64 "
+                "instruction set");
+       break;
+      }
+
+  if (i == pta_size)
+    error ("bad value (%s) for -march= switch", ix86_arch_string);
+
+  for (i = 0; i < pta_size; i++)
+    if (! strcmp (ix86_tune_string, processor_alias_table[i].name))
+      {
+       ix86_tune = processor_alias_table[i].processor;
        if (TARGET_64BIT && !(processor_alias_table[i].flags & PTA_64BIT))
          {
            if (ix86_tune_defaulted)
@@ -1320,19 +1333,6 @@ override_options (void)
              error ("CPU you selected does not support x86-64 "
                     "instruction set");
          }
-       break;
-      }
-
-  if (i == pta_size)
-    error ("bad value (%s) for -march= switch", ix86_arch_string);
-
-  for (i = 0; i < pta_size; i++)
-    if (! strcmp (ix86_tune_string, processor_alias_table[i].name))
-      {
-       ix86_tune = processor_alias_table[i].processor;
-       if (TARGET_64BIT && !(processor_alias_table[i].flags & PTA_64BIT))
-         error ("CPU you selected does not support x86-64 instruction set");
-
         /* Intel CPUs have always interpreted SSE prefetch instructions as
           NOPs; so, we can enable SSE prefetch instructions even when
           -mtune (rather than -march) points us to a processor that has them.