This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Bug in real.c rewrite


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



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