diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-11-02 16:05:18 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-11-02 09:05:18 -0700 |
commit | eefe143bec25f803c2961ee246d3695e61f368fc (patch) | |
tree | 44b2992729032da0f81d3be7a6153248709b06c3 /gcc | |
parent | 894fd6f204ea6f67eccacc0f3ee969ac48f56b3e (diff) | |
download | gcc-eefe143bec25f803c2961ee246d3695e61f368fc.zip gcc-eefe143bec25f803c2961ee246d3695e61f368fc.tar.gz gcc-eefe143bec25f803c2961ee246d3695e61f368fc.tar.bz2 |
Update -march=native/-mtune=native for Intel Core 2 and Core i7.
2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/driver-i386.c (host_detect_local_cpu): Updated
for Intel Core 2 and Core i7.
From-SVN: r166197
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/driver-i386.c | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f58b92..999ee02 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-11-02 H.J. Lu <hongjiu.lu@intel.com> + + * config/i386/driver-i386.c (host_detect_local_cpu): Updated + for Intel Core 2 and Core i7. + 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com> Model decoder of Core 2/i7 for multipass scheduling. diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index 8a76857..998214b 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -554,21 +554,21 @@ const char *host_detect_local_cpu (int argc, const char **argv) case 0x1e: case 0x1f: case 0x2e: - /* FIXME: Optimize for Nehalem. */ - cpu = "core2"; + /* Nehalem. */ + cpu = "corei7"; break; case 0x25: case 0x2f: - /* FIXME: Optimize for Westmere. */ - cpu = "core2"; + /* Westmere. */ + cpu = "corei7"; break; case 0x17: case 0x1d: - /* Penryn. FIXME: -mtune=core2 is slower than -mtune=generic */ + /* Penryn. */ cpu = "core2"; break; case 0x0f: - /* Merom. FIXME: -mtune=core2 is slower than -mtune=generic */ + /* Merom. */ cpu = "core2"; break; default: |