This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Update -march=native for Cora e2 and Core i7
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Henderson <rth at redhat dot com>, Uros Bizjak <ubizjak at gmail dot com>
- Date: Tue, 19 Oct 2010 13:23:13 -0700
- Subject: PATCH: Update -march=native for Cora e2 and Core i7
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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.
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: