diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2007-03-02 14:36:54 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2007-03-02 14:36:54 +0100 |
commit | 0fa4c370260d5edba1ea59a11c0ccf905eff510c (patch) | |
tree | e81373d37f91b168c148a4a47ab595b47b6288d3 /gcc/config | |
parent | 1f24ba024dd4c59b30718e0e3e66f8481be7db29 (diff) | |
download | gcc-0fa4c370260d5edba1ea59a11c0ccf905eff510c.zip gcc-0fa4c370260d5edba1ea59a11c0ccf905eff510c.tar.gz gcc-0fa4c370260d5edba1ea59a11c0ccf905eff510c.tar.bz2 |
i386.c (override_options): Put initialization of ix86_tune_mask and ix86_arch_mask to the correct place.
* config/i386/i386.c (override_options): Put initialization of
ix86_tune_mask and ix86_arch_mask to the correct place.
From-SVN: r122476
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 7794017..bdf76d3 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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 |