Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 230885 Details for
Bug 317513
[4.5] Core i5 misdetected as Atom w/ -march=native (was: illegal instruction in xulrunner)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gcc45-PR44046-core2.patch
gcc45-PR44046-core2.patch (text/plain), 2.20 KB, created by
Ryan Hill (RETIRED)
on 2010-05-09 18:40:19 UTC
(
hide
)
Description:
gcc45-PR44046-core2.patch
Filename:
MIME Type:
Creator:
Ryan Hill (RETIRED)
Created:
2010-05-09 18:40:19 UTC
Size:
2.20 KB
patch
obsolete
>diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c >index 17694ef..063279a 100644 >--- a/gcc/config/i386/driver-i386.c >+++ b/gcc/config/i386/driver-i386.c >@@ -538,34 +538,61 @@ const char *host_detect_local_cpu (int argc, const char **argv) > cpu = "pentium"; > break; > case PROCESSOR_PENTIUMPRO: >- if (model == 28) >- cpu = "atom"; >- else if (model >= 28 && l2sizekb < 2048) >- /* Assume it's a small core if there's less than 2MB cache */ >- cpu = "atom"; >- else if (has_longmode) >- cpu = "core2"; >- else if (arch) >+ switch (model) > { >- if (has_sse3) >- /* It is Core Duo. */ >- cpu = "pentium-m"; >- else if (has_sse2) >- /* It is Pentium M. */ >- cpu = "pentium-m"; >- else if (has_sse) >- /* It is Pentium III. */ >- cpu = "pentium3"; >- else if (has_mmx) >- /* It is Pentium II. */ >- cpu = "pentium2"; >+ case 0x1c: >+ case 0x26: >+ /* Atom. */ >+ cpu = "atom"; >+ break; >+ case 0x1a: >+ case 0x1e: >+ case 0x1f: >+ case 0x2e: >+ /* FIXME: Optimize for Nehalem. */ >+ cpu = "core2"; >+ break; >+ case 0x25: >+ case 0x2f: >+ /* FIXME: Optimize for Westmere. */ >+ cpu = "core2"; >+ break; >+ case 0x17: >+ case 0x1d: >+ /* Penryn. FIXME: -mtune=core2 is slower than -mtune=generic */ >+ cpu = "core2"; >+ break; >+ case 0x0f: >+ /* Merom. FIXME: -mtune=core2 is slower than -mtune=generic */ >+ cpu = "core2"; >+ break; >+ default: >+ if (arch) >+ { >+ if (has_ssse3) >+ /* If it is an unknown CPU with SSSE3, assume Core 2. */ >+ cpu = "core2"; >+ else if (has_sse3) >+ /* It is Core Duo. */ >+ cpu = "pentium-m"; >+ else if (has_sse2) >+ /* It is Pentium M. */ >+ cpu = "pentium-m"; >+ else if (has_sse) >+ /* It is Pentium III. */ >+ cpu = "pentium3"; >+ else if (has_mmx) >+ /* It is Pentium II. */ >+ cpu = "pentium2"; >+ else >+ /* Default to Pentium Pro. */ >+ cpu = "pentiumpro"; >+ } > else >- /* Default to Pentium Pro. */ >- cpu = "pentiumpro"; >+ /* For -mtune, we default to -mtune=generic. */ >+ cpu = "generic"; >+ break; > } >- else >- /* For -mtune, we default to -mtune=generic. */ >- cpu = "generic"; > break; > case PROCESSOR_PENTIUM4: > if (has_sse3)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 317513
:
229417
|
229419
|
230765
| 230885