Re: [Mingw-w64-public] [PATCH] Fix bug in InterlockedOr

2013-05-23 Thread Kai Tietz
2013/5/23 dw : > In summary, this patch: > > 1) Correctly returns the "old" value. > 2) Uses builtin function instead of inline asm. > > Nice catch. Patch is ok. Could you please also prepare patch for > crt's intrinsic-implementation files? > > > As before, plus: > > 3) Fixes both winnt.h and the

Re: [Mingw-w64-public] [PATCH] Fix bug in InterlockedOr

2013-05-23 Thread dw
In summary, this patch: 1) Correctly returns the "old" value. 2) Uses builtin function instead of inline asm. Nice catch. Patch is ok. Could you please also prepare patch for crt's intrinsic-implementation files? As before, plus: 3) Fixes both winnt.h and the crt intrinsic files. 4) Uses int

Re: [Mingw-w64-public] time == _time64 in .DEF not working on MS lib.exe

2013-05-23 Thread Kai Tietz
2013/5/23 Dongsheng Song : > Hi, > > mingw-w64 use lots of '==' to redirect symbols, e.g. > > time == _time64 > > dlltool -x -c -k -m i386 --input-def libtest.def --dllname > libtest.dll --output-lib libtest.dll.a > > lib /NOLOGO /DEF:libtest.def /OUT:libtest.lib /MACHINE:X86 > > But only dllt

[Mingw-w64-public] time == _time64 in .DEF not working on MS lib.exe

2013-05-23 Thread Dongsheng Song
Hi, mingw-w64 use lots of '==' to redirect symbols, e.g. time == _time64 dlltool -x -c -k -m i386 --input-def libtest.def --dllname libtest.dll --output-lib libtest.dll.a lib /NOLOGO /DEF:libtest.def /OUT:libtest.lib /MACHINE:X86 But only dlltool works correctly, MS lib.exe not works, is

Re: [Mingw-w64-public] maps POSIX errors to WSA errors is disabled in psdk_inc/_wsa_errnos.h

2013-05-23 Thread niXman
2013/5/23 Kai Tietz: > This is because those errno-constants got defined with real-value by > MS for more modern msvcr*.dll. > > So we removed that kludge. Thanks. -- Regards, niXman ___ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Win

Re: [Mingw-w64-public] maps POSIX errors to WSA errors is disabled in psdk_inc/_wsa_errnos.h

2013-05-23 Thread Kai Tietz
This is because those errno-constants got defined with real-value by MS for more modern msvcr*.dll. So we removed that kludge. Kai 2013/5/23 niXman : > Hello list, > > subj. > why? > > In file[1], line 186. > > > [1] > http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/trunk/mingw-w64-header

[Mingw-w64-public] maps POSIX errors to WSA errors is disabled in psdk_inc/_wsa_errnos.h

2013-05-23 Thread niXman
Hello list, subj. why? In file[1], line 186. [1] http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/trunk/mingw-w64-headers/include/psdk_inc/_wsa_errnos.h?revision=5872&view=markup Thanks. -- Regards, niXman ___ Dual-target(32 & 64-bit) MinG

Re: [Mingw-w64-public] [PATCH] Fix bug in __stosb - Part2

2013-05-23 Thread Rafaël Carré
Le 23/05/2013 10:04, Kai Tietz a écrit : > 2013/5/23 dw : >> Attached is part 2 of the __stosb patch. It takes the changes part 1 made >> to winnt.h and applies them to the identical code in the crt. >> >> Specifically: >> >> 1) The __buildstos macro has been removed from winnt.h >> 2) __buildstos

Re: [Mingw-w64-public] [PATCH] Fix bug in __stosb - Part2

2013-05-23 Thread Kai Tietz
2013/5/23 dw : > Attached is part 2 of the __stosb patch. It takes the changes part 1 made > to winnt.h and applies them to the identical code in the crt. > > Specifically: > > 1) The __buildstos macro has been removed from winnt.h > 2) __buildstos has been put in the new file > mingw-w64-headers/