This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33809] Rounding off error in GCC 4.1.2
- From: "satyaakam at yahoo dot co dot in" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2007 14:00:33 -0000
- Subject: [Bug c/33809] Rounding off error in GCC 4.1.2
- References: <bug-33809-12095@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from satyaakam at yahoo dot co dot in 2007-10-18 14:00 -------
$gcc -ffloat-store round.c
$ ./a.out
-0.724062
$gcc -O3 -ffloat-store round.c
$ ./a.out
-0.541341
$gcc -O0 -ffloat-store round.c
./a.out
-0.724062
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33809