Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 499560 Details for
Bug 635006
net-p2p/bitcoind-0.13.1 does not build for uclibc-ng and on GCC 4.9
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bitcoind-0.13.1-uclibc.patch
bitcoind-0.13.1-uclibc.patch (text/plain), 1.97 KB, created by
René Rhéaume
on 2017-10-21 16:45:34 UTC
(
hide
)
Description:
bitcoind-0.13.1-uclibc.patch
Filename:
MIME Type:
Creator:
René Rhéaume
Created:
2017-10-21 16:45:34 UTC
Size:
1.97 KB
patch
obsolete
>--- bitcoin-0.13.1-cxx11/src/test/test_bitcoin.cpp >+++ bitcoin-0.13.1-uclibc/src/test/test_bitcoin.cpp >@@ -158,3 +158,82 @@ bool ShutdownRequested() > { > return false; > } >+ >+int main(int argc, char** argv) >+{ >+ new TestChain100Setup(); >+ return 0; >+} >+ >+ >+#ifdef __UCLIBC__ >+#if defined __i386__ || defined __amd64__ >+#include <fenv.h> >+#include <x86intrin.h> >+ >+#define _SSE_MASK_SHIFT 7 >+ >+static inline unsigned short get_x87_sw(void) >+{ >+ unsigned short sw; >+ __asm__("fnstsw %0" : "=a"(sw)); >+ return sw; >+} >+ >+int feclearexcept(int mask) >+{ >+ unsigned short sw = get_x87_sw(); >+ if (sw & mask & FE_ALL_EXCEPT) { >+ __asm__("fnclex"); >+ } >+ unsigned int mxcsr = _mm_getcsr(); >+ mxcsr |= sw & FE_ALL_EXCEPT; >+ if (mxcsr & mask & FE_ALL_EXCEPT) { >+ _mm_setcsr(mxcsr & ~(mask & FE_ALL_EXCEPT)); >+ } >+ return 0; >+} >+ >+int feenableexcept(int mask) >+{ >+ unsigned int mxcsr, omask; >+ unsigned short control; >+ >+ mask &= FE_ALL_EXCEPT; >+ >+ __asm__ volatile ("fnstcw %0" : "=m" (control)); >+ __asm__ volatile ("stmxcsr %0" : "=m" (mxcsr)); >+ >+ omask = ~(control | (mxcsr >> _SSE_MASK_SHIFT)) & FE_ALL_EXCEPT; >+ control &= ~mask; >+ __asm__ volatile ("fldcw %0" : : "m" (control)); >+ >+ mxcsr &= ~(mask << _SSE_MASK_SHIFT); >+ __asm__ volatile ("ldmxcsr %0" : : "m" (mxcsr)); >+ >+ return (omask); >+} >+ >+int fedisableexcept(int mask) >+{ >+ unsigned int mxcsr, omask; >+ unsigned short control; >+ >+ mask &= FE_ALL_EXCEPT; >+ >+ __asm__ volatile ("fnstcw %0" : "=m" (control)); >+ __asm__ volatile ("stmxcsr %0" : "=m" (mxcsr)); >+ >+ omask = ~(control | (mxcsr >> _SSE_MASK_SHIFT)) & FE_ALL_EXCEPT; >+ control |= mask; >+ __asm__ volatile ("fldcw %0" : : "m" (control)); >+ >+ mxcsr |= mask << _SSE_MASK_SHIFT; >+ __asm__ volatile ("ldmxcsr %0" : : "m" (mxcsr)); >+ >+ return (omask); >+} >+#else >+#error Only IA32 and AMD64 architectures are supported for fe*except >+#endif >+#endif >Binary files bitcoin-0.13.1-cxx11/src/test/test_test_bitcoin-test_bitcoin.o and bitcoin-0.13.1-uclibc/src/test/test_test_bitcoin-test_bitcoin.o differ
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 635006
:
499558
| 499560