Might depend on the sender. It has worked for me before.
Try this.
dw
On 3/21/2017 9:48 PM, Liu Hao wrote:
On 2017/3/22 4:57, Mateusz Mikuła wrote:
Sorry for the delay but I spent almost whole day in college.
Thank you for adding it, here comes small patch to test it.
I got the attachment but its Content-Type said plain text. Is this
normal behavior?
* * * * *
Content-Type: text/plain; charset=UTF-8;
name="0103-fix-libclang-name-for-mingw.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="0103-fix-libclang-name-for-mingw.patch"
* * * * *
diff --git a/mingw-w64-crt/misc/feholdexcept.c b/mingw-w64-crt/misc/feholdexcept.c
index a2b7834..b44c336 100644
--- a/mingw-w64-crt/misc/feholdexcept.c
+++ b/mingw-w64-crt/misc/feholdexcept.c
@@ -13,6 +13,7 @@
int feholdexcept (fenv_t * envp)
{
+ int ret = 0;
#if defined(_ARM_) || defined(__arm__)
fenv_t _env;
__asm__ volatile ("fmrx %0, FPSCR" : "=r" (_env));
@@ -20,10 +21,10 @@ int feholdexcept (fenv_t * envp)
_env.__cw &= ~(FE_ALL_EXCEPT);
__asm__ volatile ("fmxr FPSCR, %0" : : "r" (_env));
#else
- __asm__ __volatile__ ("fnstenv %0;" : "=m" (* envp)); /* save current into envp */
+ ret = fegetenv(envp);
/* fnstenv sets control word to non-stop for all exceptions, so all we
need to do is clear the exception flags. */
__asm__ __volatile__ ("fnclex");
#endif /* defined(_ARM_) || defined(__arm__) */
- return 0;
+ return ret;
}
diff --git a/mingw-w64-crt/misc/fesetenv.c b/mingw-w64-crt/misc/fesetenv.c
index d16dd65..015f71e 100644
--- a/mingw-w64-crt/misc/fesetenv.c
+++ b/mingw-w64-crt/misc/fesetenv.c
@@ -58,16 +58,14 @@ int fesetenv (const fenv_t * envp)
{
fenv_t env = *envp;
int _mxcsr;
- __asm__ ("fnstenv %0\n"
- "stmxcsr %1" : "=m" (*&env), "=m" (*&_mxcsr));
- /*_mxcsr = ((int)envp->__unused0 << 16) | (int)envp->__unused1; *//* mxcsr low and high */
+ _mxcsr = ((int)envp->__unused0 << 16) | (int)envp->__unused1; /* mxcsr low and high */
env.__unused0 = 0xffff;
env.__unused1 = 0xffff;
__asm__ volatile ("fldenv %0" : : "m" (env)
: "st", "st(1)", "st(2)", "st(3)", "st(4)",
"st(5)", "st(6)", "st(7)");
if (__mingw_has_sse ())
- __asm__ volatile ("ldmxcsr %0" : : "m" (*&_mxcsr));
+ __asm__ volatile ("ldmxcsr %0" : : "m" (_mxcsr));
}
#endif /* defined(_ARM_) || defined(__arm__) */
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public