Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 409922 Details for
Bug 558466
sys-devel/gcc fails to compile using "-march=native" on VIA nano CPU
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to properly detect VIA nano CPU for gcc 4.9+ versions
VIA_nano_4.9.diff (text/plain), 1.17 KB, created by
Jocelyn Mayer
on 2015-08-23 12:32:39 UTC
(
hide
)
Description:
patch to properly detect VIA nano CPU for gcc 4.9+ versions
Filename:
MIME Type:
Creator:
Jocelyn Mayer
Created:
2015-08-23 12:32:39 UTC
Size:
1.17 KB
patch
obsolete
>--- gcc/config/i386/driver-i386.c.orig 2015-02-02 05:20:49.000000000 +0100 >+++ gcc/config/i386/driver-i386.c 2015-08-23 01:11:03.000000000 +0200 >@@ -601,15 +601,20 @@ > switch (family) > { > case 6: >- if (model > 9) >- /* Use the default detection procedure. */ >+ if (has_longmode) > processor = PROCESSOR_GENERIC; >- else if (model == 9) >- cpu = "c3-2"; >- else if (model >= 6) >- cpu = "c3"; > else >- processor = PROCESSOR_GENERIC; >+ { >+ if (model > 9) >+ /* Use the default detection procedure. */ >+ processor = PROCESSOR_GENERIC; >+ else if (model == 9) >+ cpu = "c3-2"; >+ else if (model >= 6) >+ cpu = "c3"; >+ else >+ processor = PROCESSOR_GENERIC; >+ } > break; > case 5: > if (has_3dnow) >@@ -623,6 +628,8 @@ > /* We have no idea. */ > processor = PROCESSOR_GENERIC; > } >+ } else { >+ processor = PROCESSOR_GENERIC; > } > } > else >@@ -840,7 +847,12 @@ > if (arch) > { > if (has_ssse3) >- cpu = "core2"; >+ { >+ if (vendor == signature_CENTAUR_ebx) >+ cpu = "x86-64"; >+ else >+ cpu = "core2"; >+ } > else if (has_sse3) > { > if (has_longmode)
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 558466
:
409920
|
409922
|
409928
|
436152