Update -march=native/-mtune=native for Intel Core 2 and Core i7.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2010 16:05:18 +0000 (16:05 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2010 16:05:18 +0000 (16:05 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166197 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/driver-i386.c

index 7f58b92..999ee02 100644 (file)
@@ -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.
index 8a76857..998214b 100644 (file)
@@ -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: