2013/6/4 Kai Tietz <ktiet...@googlemail.com>
> Hmm, could you try if the following patch solves your problem?
>
> Kai
>
> Index: winnt.h
> ===================================================================
> --- winnt.h (Revision 5878)
> +++ winnt.h (Arbeitskopie)
> @@ -1542,10 +1542,10 @@ extern "C" {
> VOID __stosq(PDWORD64 Destination,DWORD64 Value,SIZE_T Count);
>
> #ifndef __CRT__NO_INLINE
> -__CRT_INLINE __buildstos(__stosb, BYTE)
> -__CRT_INLINE __buildstos(__stosw, WORD)
> -__CRT_INLINE __buildstos(__stosd, DWORD)
> -__CRT_INLINE __buildstos(__stosq, DWORD64)
> +__CRT_INLINE __buildstos(__stosb, VOID, PBYTE, BYTE, SIZE_T)
> +__CRT_INLINE __buildstos(__stosw, VOID, PWORD, WORD, SIZE_T)
> +__CRT_INLINE __buildstos(__stosd, VOID, PDWORD, DWORD, SIZE_T)
> +__CRT_INLINE __buildstos(__stosq, VOID, PDWORD64, DWORD64, SIZE_T)
> #endif /* __CRT__NO_INLINE */
>
> #define MultiplyHigh __mulh
> Index: psdk_inc/intrin-mac.h
> ===================================================================
> --- psdk_inc/intrin-mac.h (Revision 5878)
> +++ psdk_inc/intrin-mac.h (Arbeitskopie)
> @@ -15,7 +15,8 @@
> FunctionName: Any valid function name
> DataType: BYTE, WORD, DWORD or DWORD64 */
>
> -#define __buildstos(x, y) void x(y *Dest, y Data, size_t Count) \
> +#define __buildstos(x, r0, t0, t1, t2) \
> +r0 x(t0 Dest, t1 Data, t2 Count) \
> { \
> __asm__ __volatile__ ("rep stos%z[Data]" \
> : /* no outputs */ \
>
> Hi, Kai!
I test your patch but without success. I have error:
make[3]: Entering directory
'/work/build/runtime/x86_64-pc-cygwin/winsup/cygwin'
../../../../../Cygwin32/winsup/cygwin/gendef --cpu=x86_64
--output-def=cygwin.def
--tlsoffsets=../../../../../Cygwin32/winsup/cygwin/tlsoffsets64.h
../../../../../Cygwin32/winsup/cygwin/x86_64.din
../../../../../Cygwin32/winsup/cygwin/common.din
../../../../../Cygwin32/winsup/cygwin/mkglobals_h
../../../../../Cygwin32/winsup/cygwin/globals.cc > globals.h
c++wrap -O2 -g -fno-rtti -fno-exceptions -Wall -Wstrict-aliasing
-Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror
-fmerge-constants -ftracer -mcmodel=small -c -o _cygwin_crt0_common.o
../../../../../Cygwin32/winsup/cygwin/lib/_cygwin_crt0_common.cc
In file included from /usr/include/w32api/windef.h:139:0,
from /usr/include/w32api/windows.h:69,
from ../../../../../Cygwin32/winsup/cygwin/winlean.h:52,
from ../../../../../Cygwin32/winsup/cygwin/winsup.h:76,
from
../../../../../Cygwin32/winsup/cygwin/lib/_cygwin_crt0_common.cc:12:
/usr/include/w32api/winnt.h:1545:39: error: macro "__buildstos" requires 5
arguments, but only 2 given
__CRT_INLINE __buildstos(__stosb, BYTE)
^
/usr/include/w32api/winnt.h:1546:39: error: macro "__buildstos" requires 5
arguments, but only 2 given
__CRT_INLINE __buildstos(__stosw, WORD)
^
/usr/include/w32api/winnt.h:1547:40: error: macro "__buildstos" requires 5
arguments, but only 2 given
__CRT_INLINE __buildstos(__stosd, DWORD)
^
/usr/include/w32api/winnt.h:1548:42: error: macro "__buildstos" requires 5
arguments, but only 2 given
__CRT_INLINE __buildstos(__stosq, DWORD64)
^
In file included from /usr/include/w32api/windef.h:139:0,
from /usr/include/w32api/windows.h:69,
from ../../../../../Cygwin32/winsup/cygwin/winlean.h:52,
from ../../../../../Cygwin32/winsup/cygwin/winsup.h:76,
from
../../../../../Cygwin32/winsup/cygwin/lib/_cygwin_crt0_common.cc:12:
/usr/include/w32api/winnt.h:1545:14: error: ‘__buildstos’ does not name a
type
__CRT_INLINE __buildstos(__stosb, BYTE)
^
../../../../../Cygwin32/winsup/cygwin/../Makefile.common:43: recipe for
target '_cygwin_crt0_common.o' failed
make[3]: *** [_cygwin_crt0_common.o] Error 1
make[3]: Leaving directory
'/work/build/runtime/x86_64-pc-cygwin/winsup/cygwin'
Makefile:82: recipe for target 'cygwin' failed
make[2]: *** [cygwin] Error 1
Regards, Alexey.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public