This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21809] Floating Optimization Bug
- From: "themis_hv at yahoo dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2005 19:28:38 -0000
- Subject: [Bug target/21809] Floating Optimization Bug
- References: <20050529162127.21809.themis_hv@yahoo.co.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From themis_hv at yahoo dot co dot uk 2005-05-29 19:28 -------
Read the code carefully:
test-case.c:
#include <assert,h>
volatile float x = 3;
int main()
{
float a = 1 / x;
x = a;
assert(a == x);
}
Notice x = a before assertion, both of these variables are of the same data type.
This is *not* related to precission.
This is behaviour, you would expect from a compiler.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21809