This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bug in real.c rewrite
- From: law at redhat dot com
- To: rth at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 24 Feb 2003 17:33:01 -0700
- Subject: Bug in real.c rewrite
- Reply-to: law at redhat dot com
The real.c rewrite that went into the tree in September has at least
one buglet left.
Consider this test (derived from conversion.c):
main()
{
if (((unsigned long long int)((float) ~((~0ULL) >> 1))) !=
0x8000000000000000ULL)
abort();
exit (0);
}
The problem is the RHS of the comparison is computed as 0x7fffffffffffffff
rather than 0x8000000000000000. This (of course) causes the test to
fail. It works fine with a compiler from just before the rewrite.
Jeff