diff mbox

PATCH: Update -march=native for Cora e2 and Core i7

Message ID 20101019202313.GA18638@intel.com
State New
Headers show

Commit Message

H.J. Lu Oct. 19, 2010, 8:23 p.m. UTC
After this patch:

http://gcc.gnu.org/ml/gcc-patches/2010-10/msg01616.html

is checked in, we can use core2/corei7 for -march=native on Core 2 and
Core i7.  OK for trunk?

Thanks.


H.J.
---
2010-10-19  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/driver-i386.c (host_detect_local_cpu): Updated
	for Core 2 and Core i7.

Comments

Richard Henderson Oct. 19, 2010, 9:19 p.m. UTC | #1
On 10/19/2010 01:23 PM, H.J. Lu wrote:
> 	* config/i386/driver-i386.c (host_detect_local_cpu): Updated
> 	for Core 2 and Core i7.

Ok.


r~
diff mbox

Patch

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: