Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 437388 Details for
Bug 585846
=media-libs/openexr-2.2.0[abi_x86_32]: emake failed: IlmImf/ImfSystemSpecific.cpp:51:29: error: inconsistent operand constraints in an ‘asm’
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openexr-2.2.0-fix-cpuid-on-abi_x86_32.patch
openexr-2.2.0-fix-cpuid-on-abi_x86_32.patch (text/plain), 1.91 KB, created by
Adrian
on 2016-06-13 16:27:06 UTC
(
hide
)
Description:
openexr-2.2.0-fix-cpuid-on-abi_x86_32.patch
Filename:
MIME Type:
Creator:
Adrian
Created:
2016-06-13 16:27:06 UTC
Size:
1.91 KB
patch
obsolete
>diff -Naur a/IlmImf/ImfSystemSpecific.cpp b/IlmImf/ImfSystemSpecific.cpp >--- a/IlmImf/ImfSystemSpecific.cpp 2016-06-14 01:19:15.070511555 +0930 >+++ b/IlmImf/ImfSystemSpecific.cpp 2016-06-14 01:36:08.776496862 +0930 >@@ -35,6 +35,7 @@ > #include "ImfSystemSpecific.h" > #include "ImfNamespace.h" > #include "OpenEXRConfig.h" >+#include <cpuid.h> > > OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_ENTER > >@@ -42,19 +43,15 @@ > #if defined(IMF_HAVE_SSE2) && defined(__GNUC__) > > // Helper functions for gcc + SSE enabled >- void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx) >+ void cpuid(unsigned int n, unsigned int &eax, unsigned int &ebx, unsigned int &ecx, unsigned int &edx) > { >- __asm__ __volatile__ ( >- "cpuid" >- : /* Output */ "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) >- : /* Input */ "a"(n) >- : /* Clobber */); >+ __get_cpuid(n, &eax, &ebx, &ecx, &edx ); > } > > #else // IMF_HAVE_SSE2 && __GNUC__ > > // Helper functions for generic compiler - all disabled >- void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx) >+ void cpuid(unsigned int n, unsigned int &eax, unsigned int &ebx, unsigned int &ecx, unsigned int &edx) > { > eax = ebx = ecx = edx = 0; > } >@@ -64,7 +61,7 @@ > > #ifdef OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX > >- void xgetbv(int n, int &eax, int &edx) >+ void xgetbv(unsigned int n, unsigned int &eax, unsigned int &edx) > { > __asm__ __volatile__ ( > "xgetbv" >@@ -75,7 +72,7 @@ > > #else // OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX > >- void xgetbv(int n, int &eax, int &edx) >+ void xgetbv(unsigned int n, unsigned int &eax, unsigned int &edx) > { > eax = edx = 0; > } >@@ -94,8 +91,8 @@ > f16c(false) > { > bool osxsave = false; >- int max = 0; >- int eax, ebx, ecx, edx; >+ unsigned int max = 0; >+ unsigned int eax, ebx, ecx, edx; > > cpuid(0, max, ebx, ecx, edx); > if (max > 0)
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 585846
: 437388 |
437390
|
444376