This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/29797] Miscompiles bit test / set in OpenOffice
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2006 13:10:58 -0000
- Subject: [Bug target/29797] Miscompiles bit test / set in OpenOffice
- References: <bug-29797-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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