diff options
| author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-02 13:36:54 +0000 |
|---|---|---|
| committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-02 13:36:54 +0000 |
| commit | ec7b4e89f0073b9318d9fa385340f0241e82205f (patch) | |
| tree | e81373d37f91b168c148a4a47ab595b47b6288d3 | |
| parent | e3061c8581ff6823a877ee7820bf863d5c8778d1 (diff) | |
| download | ppe42-gcc-ec7b4e89f0073b9318d9fa385340f0241e82205f.tar.gz ppe42-gcc-ec7b4e89f0073b9318d9fa385340f0241e82205f.zip | |
* config/i386/i386.c (override_options): Put initialization of
ix86_tune_mask and ix86_arch_mask to the correct place.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122476 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/i386/i386.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 74d80c418a8..cd50a3bf723 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -9,6 +9,11 @@ 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> PR target/31019 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 7794017eb26..bdf76d3196e 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 |

