|
From: Loos B. <Ber...@ru...> - 2014-05-09 07:42:29
Attachments:
valgrind_h.diff
|
Hello
Mingw64 also defines __MINGW32__, so PLAT_x86_win32 gets defined instead of PLAT_amd64_win64.
This leads to 32bit asm being used and the xchgl %%ebx,%%ebx zeros out the upper 32bit of rbx.
Depending on the surrounding code, the resulting bugs can be very hard to debug.
This patch fixes the platform detection and uses the PLAT_amd64_linux implementation for mingw64, similar to what is done for mingw32.
Bernhard Loos
|