i386.c (override_options): Put initialization of ix86_tune_mask and ix86_arch_mask...
authorUros Bizjak <ubizjak@gmail.com>
Fri, 2 Mar 2007 13:36:54 +0000 (14:36 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 2 Mar 2007 13:36:54 +0000 (14:36 +0100)
        * config/i386/i386.c (override_options): Put initialization of
        ix86_tune_mask and ix86_arch_mask to the correct place.

From-SVN: r122476

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

index 74d80c418a8635fc7bbfaf7d9b8f0d0123769b00..cd50a3bf723c09b57b3b26a089bf334ee0e223c0 100644 (file)
@@ -8,6 +8,11 @@
        Use $MULTIDIR to choose between the kernel and RTP headers,
        and use $WIND_BASE and $WIND_USR to locate them.
 
+2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.c (override_options): Put initialization of
+       ix86_tune_mask and ix86_arch_mask to the correct place.
+
 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
            Michael Meissner  <michael.meissner@amd.com>
 
index 7794017eb26e236623cfd2065d21936e05c42542..bdf76d3196e213ec6c931830bfd0fd182d7a2e49 100644 (file)
@@ -2079,10 +2079,8 @@ override_options (void)
     if (! strcmp (ix86_arch_string, processor_alias_table[i].name))
       {
        ix86_arch = processor_alias_table[i].processor;
-       ix86_arch_mask = 1 << ix86_arch;
        /* Default cpu tuning to the architecture.  */
        ix86_tune = ix86_arch;
-       ix86_tune_mask = 1 << ix86_tune;
        if (processor_alias_table[i].flags & PTA_MMX
            && !(target_flags_explicit & MASK_MMX))
          target_flags |= MASK_MMX;
@@ -2157,6 +2155,9 @@ override_options (void)
   if (i == pta_size)
     error ("bad value (%s) for -mtune= switch", ix86_tune_string);
 
+  ix86_arch_mask = 1 << ix86_arch;
+  ix86_tune_mask = 1 << ix86_tune;
+
   if (optimize_size)
     ix86_cost = &size_cost;
   else