This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.
- From: "purnnam1 at naver dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Mar 2008 23:07:37 -0000
- Subject: [Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.
- References: <bug-35488-15868@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from purnnam1 at naver dot com 2008-03-06 23:07 -------
It's not simple floating point related error!
I fully understand that the decimal number can't be converted to the exact
floating point number. so, the result may be different from our expectation.
This problem has no relation to a foolish mistake, (0.3+0.6)!=0.9.
In only ONE BASIC arithmetic operation, the output should be same between
compilers if the compilers are compliant to IEEE-754 standard and the inputs
are exactly same. If this bug is not corrected, the GCC 32-bit is NOT compliant
to IEEE-754 standard.
--
purnnam1 at naver dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |major
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35488