diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2011-06-08 13:48:58 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2011-06-08 06:48:58 -0700 |
commit | 4ffae7ff4745df9ca911eaebf83edd74ee76f296 (patch) | |
tree | 50e95fd1cda0b801e3a010da378bfe32eeb1f763 | |
parent | 29f445bca0097771a52c7558f38d2fe287be2419 (diff) | |
download | gcc-4ffae7ff4745df9ca911eaebf83edd74ee76f296.zip gcc-4ffae7ff4745df9ca911eaebf83edd74ee76f296.tar.gz gcc-4ffae7ff4745df9ca911eaebf83edd74ee76f296.tar.bz2 |
Support unknown Intel family 0x6 CPUs.
2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/driver-i386.c (host_detect_local_cpu): Support
unknown Intel family 0x6 CPUs.
From-SVN: r174809
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/driver-i386.c | 19 |
2 files changed, 21 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 024f6b6..7f53eaf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-06-08 H.J. Lu <hongjiu.lu@intel.com> + + * config/i386/driver-i386.c (host_detect_local_cpu): Support + unknown Intel family 0x6 CPUs. + 2011-06-08 Martin Jambor <mjambor@suse.cz> * tree-sra.c (mark_rw_status): Removed. diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index 4fc6b45..985a6ff 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -587,9 +587,22 @@ const char *host_detect_local_cpu (int argc, const char **argv) default: if (arch) { - if (has_ssse3) - /* If it is an unknown CPU with SSSE3, assume Core 2. */ - cpu = "core2"; + /* This is unknown family 0x6 CPU. */ + if (has_avx) + /* Assume Sandy Bridge. */ + cpu = "corei7-avx"; + else if (has_sse4_2) + /* Assume Core i7. */ + cpu = "corei7"; + else if (has_ssse3) + { + if (has_movbe) + /* Assume Atom. */ + cpu = "atom"; + else + /* Assume Core 2. */ + cpu = "core2"; + } else if (has_sse3) /* It is Core Duo. */ cpu = "pentium-m"; |