From d0cf4e841d8ab907811943e04102d9765660c003 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hongjiu.lu@intel.com>
Date: Tue, 27 Aug 2013 18:11:23 +0000
Subject: [PATCH] Update Haswell processor detection

	* config/i386/driver-i386.c (host_detect_local_cpu): Update
	Haswell processor detection.

From-SVN: r202028
---
 gcc/ChangeLog                 | 5 +++++
 gcc/config/i386/driver-i386.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9698dc910184..54a4cf9e52c1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* config/i386/driver-i386.c (host_detect_local_cpu): Update
+	Haswell processor detection.
+
 2013-08-27  Christian Widmer  <shadow@umbrox.de>
 
 	PR target/57927
diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index 001d12fd2410..4cb9907b5ed7 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -673,6 +673,8 @@ const char *host_detect_local_cpu (int argc, const char **argv)
 	  cpu = "core-avx-i";
 	  break;
 	case 0x3c:
+	case 0x45:
+	case 0x46:
 	  /* Haswell.  */
 	  cpu = "core-avx2";
 	  break;
-- 
GitLab