Re: gcc -ansi produces unexpected floating point result

2012-12-08 Thread Paul Edwards
Hi Marco. gcc4 is for building on cygwin for cygwin. -mno-cygwin was for building on cygwin for NO cygwin, like mingw. It is now a deprecated tweak. For that scope are now available 2 cross-compilers see packages: mingw-gcc-core mingw64-i686-gcc-core both as 4.5.x versions Thanks

Re: gcc -ansi produces unexpected floating point result

2012-12-07 Thread Paul Edwards
try gcc4, gcc3 is obsolete. Hi Marco. Unfortunately gcc-4 gives this error: C:\devel\bwbasic>gcc-4 -mno-cygwin -ansi zatest.c gcc-4: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler. I'm also including the results of ldd on the gcc3 compile: C:\devel\bwbasic>ldd

gcc -ansi produces unexpected floating point result

2012-12-06 Thread Paul Edwards
/* This program demonstrates a presumed bug in gcc 3.4.4 shipped with cygwin. If compiled with gcc -mno-cygwin -ansi, it prints: C:\devel\bwbasic>gcc -mno-cygwin -ansi zatest.c C:\devel\bwbasic>a 0.00 2.00 Instead of the expected 2.00 for the first line, and undefined for t

Re: cygwin 1.5.24-2 gcc 3.4.4 stdio.h

2007-11-28 Thread Paul Edwards
Eric Blake wrote... > 1) the newlib headers pollute the namespace in strict ANSI mode (or in > other words, gcc -ansi _still has bugs_ in newlib) because no one has > submitted patches to the newlib project to clean them up. Patches are > welcome, but should be directed to the newlib list rather

Re: cygwin 1.5.24-2 gcc 3.4.4 stdio.h

2007-11-28 Thread Paul Edwards
and invalid. By the way, this mailing list is exposing email addresses over at: http://www.omgili.com/mailinglist/cygwin/cygwin/com/0ce101c8240c3a5dea606501a8c0paul.html I'll ask them to stop doing that. I just got spammed. :-( Still, at least now I know where to find replies. :-) BFN. Pau

cygwin 1.5.24-2 gcc 3.4.4 stdio.h

2007-11-10 Thread Paul Edwards
I just downloaded cygwin 1.5.24-2 (just a couple of hours ago) and compiled the following program with "gcc -ansi fred.c" (NOTE the "-ansi" keyword): #define pid_t fred was here #include int main(void) { printf("hello, world\n"); return (0); } And got the following result: In file inc