Bug#693173: gcc-mingw32: float comparison fails assertion only with -std=c99

2022-05-31 Thread Alan Beadle
I also confirm this behavior on x86_64 when compiled with 'gcc -m32 -std=c99'. It seems to happen with 32-bit C99, but not in any other case. -Alan Beadle

Bug#693173: gcc-mingw32: float comparison fails assertion only with -std=c99

2022-05-31 Thread Alan Beadle
I have just now reproduced this bug in Debian Buster x86_64 using i686-w64-mingw32-gcc-win32 with -std=c99 and wine32, using the original example above. Source file foo.c: #include float getfloat() { return 12345.6789f; } int main(void) { assert(12345.6789f == getfloat()); } Steps to reproduce:

Bug#693173: gcc-mingw32: float comparison fails assertion only with -std=c99

2012-12-24 Thread Stephen Kitt
reassign 693173 gcc thanks Hi Ben, On Tue, Nov 13, 2012 at 11:33:01PM +, Ben Golightly wrote: > The following three line C programme generates erroneous output when > compiled with i586-mingw32msvc-gcc -std=c99 > > #include > float getfloat() { return 12345.6789f; } > int main(void) { asser

Bug#693173: gcc-mingw32: float comparison fails assertion only with -std=c99

2012-11-13 Thread Ben Golightly
Package: gcc-mingw32 Version: 4.6.3-8+7 Severity: important Dear Maintainer, The following three line C programme generates erroneous output when compiled with i586-mingw32msvc-gcc -std=c99 #include float getfloat() { return 12345.6789f; } int main(void) { assert(12345.6789f == getfloat()); }