diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-06-23 18:06:43 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-06-23 18:06:43 +0000 |
commit | 7440da4555dde514c97ea5c8fa32e7b7b3640cc2 (patch) | |
tree | 2cddf38d560ad619793fd6892dd87d065a0022b7 | |
parent | affe5c162434d6d1c8ad22d65d303af255f93987 (diff) | |
download | gcc-7440da4555dde514c97ea5c8fa32e7b7b3640cc2.tar.gz |
* config/i386/driver-i386.c (host_detect_local_cpu): Set
PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
<case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
signature_CENTAUR_ebx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237741 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/i386/driver-i386.c | 23 |
2 files changed, 23 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d70dc48cbd8..1a526b7ca9e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-06-23 Jocelyn Mayer <l_indien@magic.fr> + + * config/i386/driver-i386.c (host_detect_local_cpu): Set + PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9. + <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for + signature_CENTAUR_ebx. + 2016-06-23 H.J. Lu <hongjiu.lu@intel.com> PR target/66232 diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index 9f44ee86391..22a8f2861ae 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -653,10 +653,7 @@ const char *host_detect_local_cpu (int argc, const char **argv) case 6: if (has_longmode) processor = PROCESSOR_K8; - else if (model > 9) - /* Use the default detection procedure. */ - ; - else if (model == 9) + else if (model >= 9) processor = PROCESSOR_PENTIUMPRO; else if (model >= 6) processor = PROCESSOR_I486; @@ -818,15 +815,27 @@ const char *host_detect_local_cpu (int argc, const char **argv) as all the CPUs below are 32-bit only. */ cpu = "x86-64"; else if (has_sse3) - /* It is Core Duo. */ - cpu = "pentium-m"; + { + if (vendor == signature_CENTAUR_ebx) + /* C7 / Eden "Esther" */ + cpu = "c7"; + else + /* It is Core Duo. */ + cpu = "pentium-m"; + } else if (has_sse2) /* It is Pentium M. */ cpu = "pentium-m"; else if (has_sse) { if (vendor == signature_CENTAUR_ebx) - cpu = "c3-2"; + { + if (model >= 9) + /* Eden "Nehemiah" */ + cpu = "nehemiah"; + else + cpu = "c3-2"; + } else /* It is Pentium III. */ cpu = "pentium3"; |