This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc -ansi produces unexpected floating point result


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 for the info. One works, one doesn't.



C:\devel\bwbasic>i686-pc-mingw32-gcc --version i686-pc-mingw32-gcc (GCC) 4.5.2

C:\devel\bwbasic>i686-pc-mingw32-gcc zatest.c

C:\devel\bwbasic>a
2.000000
2.000000

C:\devel\bwbasic>i686-pc-mingw32-gcc -ansi zatest.c

C:\devel\bwbasic>a
0.000000
2.000000



C:\devel\bwbasic>i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 4.5.3

C:\devel\bwbasic>i686-w64-mingw32-gcc zatest.c

C:\devel\bwbasic>a
2.000000
2.000000

C:\devel\bwbasic>i686-w64-mingw32-gcc -ansi zatest.c

C:\devel\bwbasic>a
2.000000
2.000000



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]