Re: [Mingw-w64-public] Inconsistencies in C pow() function

2012-04-14 Thread Kai Tietz
Hmm, well our implementation interpretes the ISO C99 definition "pow (x, y) signals the invalid operation exception for finite x < 0 and finite non-integer y. Therefore has as result -Nan. Having here result +Inf looks wrong to me. Cheers, Kai --

Re: [Mingw-w64-public] ddk headers

2012-04-14 Thread JonY
On 4/14/2012 17:56, Xiaofan Chen wrote: > On Sat, Apr 14, 2012 at 4:36 PM, JonY wrote: >> Don't do that, add -I/path/to/ddk instead, and get rid of the ddk/ >> prefix in your include lines, its only applicable to mingw.org. >> mingw-w64 follows MSVC DDK conventions. > > What do you mean by "mingw

Re: [Mingw-w64-public] ddk headers

2012-04-14 Thread Xiaofan Chen
On Sat, Apr 14, 2012 at 4:36 PM, JonY wrote: > Don't do that, add -I/path/to/ddk instead, and get rid of the ddk/ > prefix in your include lines, its only applicable to mingw.org. > mingw-w64 follows MSVC DDK conventions. What do you mean by "mingw-w64 follows MSVC DDK conventions"? I can not see

Re: [Mingw-w64-public] -Wformat and %llu

2012-04-14 Thread JonY
On 4/11/2012 18:10, Mike Hommey wrote: > Hi, > > I recently downloaded mingw-w64-gcc-4.6.3-runtime-2.0.1-static-ada-20120321.7z > and when compiling some things with it, I end up with unexpected warnings for > format strings. The problem can be reproduced with the following: > > >8- > #in

Re: [Mingw-w64-public] -Wformat and %llu

2012-04-14 Thread Kai Tietz
Hi Mike, the issue is that formatter-width specifier %ll isn't supported for all msvcrt-DLL versions, therefore gcc warns about its use. The variant for specifying 64-bit integer-scalar-width in formatter for msvcrt in a backward-compatible way is by using %I64. Regards, Kai 2012/4/11 Mike Homm

Re: [Mingw-w64-public] ddk headers

2012-04-14 Thread JonY
On 4/13/2012 05:11, Alex D wrote: > Hi, > When I try to compile some library I get error: > > g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE > -DQT_LARGEFILE_SUPPORT -DSERIALPORT_BUILD -DSERIALPORT_SHARED -DQT_DLL > -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE

[Mingw-w64-public] ddk headers

2012-04-14 Thread Alex D
Hi, When I try to compile some library I get error: g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DSERIALPORT_BUILD -DSERIALPORT_SHARED -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SU

[Mingw-w64-public] -Wformat and %llu

2012-04-14 Thread Mike Hommey
Hi, I recently downloaded mingw-w64-gcc-4.6.3-runtime-2.0.1-static-ada-20120321.7z and when compiling some things with it, I end up with unexpected warnings for format strings. The problem can be reproduced with the following: >8- #include int main() { size_t a = 1; printf("%llu %llu

Re: [Mingw-w64-public] Inconsistencies in C pow() function

2012-04-14 Thread Jonathan Liu
Attached is an updated test program. It will now show all failures at once instead of terminating after the first test failure. Regards, Jonathan #include #include #include #include #ifdef _MSC_VER #define INFINITY HUGE_VAL #define isfinite _finite #define isnan _isnan unsigned long nan[2]

Re: [Mingw-w64-public] Inconsistencies in C pow() function

2012-04-14 Thread Jonathan Liu
On 13/04/2012 9:54 PM, NightStrike wrote: > On Fri, Apr 13, 2012 at 4:39 AM, Jonathan Liu wrote: >> Visual C++ 2010 and GCC on Linux give the same expected output for these >> tests and pass. I just think it would be good if MinGW-w64 gave results >> that were more consistent with Visual C++ 2010