[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Mar 13 22:16:00 GMT 2007



------- Comment #12 from pinskia at gcc dot gnu dot org  2007-03-13 22:16 -------
Another testcase but it is not fixed by my patch as I did not fix the other
side:
int main(void)
{
  double b = 234.0;
  long long c;
  double d = b;
  __builtin_memcpy(&c, &b, sizeof(double));
  long long e = c;
  if (__builtin_memcmp (&e, &d, sizeof(double)) != 0)
    __builtin_abort ();
  return 0;
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |blocker
 GCC target triplet|hppa64-hp-hpux11.00,        |FLOAT_WORDS_BIG_ENDIAN
                   |powerpc64-linux-gnu         |targets


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30704



More information about the Gcc-bugs mailing list