diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9698dc910184135626b19e0dfff935cdc47d6c8b..54a4cf9e52c1dc9e3675fb61eb04c9af0ada8cc4 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 001d12fd241066bd50bffa1c62bf38e6bd7a8c92..4cb9907b5ed7c9e57fafb53a6c733bbd2ffd81ce 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;