[Bug target/29797] Miscompiles bit test / set in OpenOffice

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Nov 10 13:11:00 GMT 2006



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-11-10 13:10 -------
Shorter testcase for gcc.c-torture/execute:

extern  void abort(void);
unsigned int bar(void) { return 32768; }
int main()
{
  unsigned int nStyle = bar ();
  if (nStyle & 32768)
    nStyle |= 65536;
  if (nStyle != (32768 | 65536))
    abort ();
  return 0;
}


-- 


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



More information about the Gcc-bugs mailing list