Summary: | gcc 4.2.0 miscompiles bitfields | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Reimar Döffinger <Reimar.Doeffinger> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | loki_val |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/2007-August/030927.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | testcase that miscompiles for me |
Description
Reimar Döffinger
2007-08-25 08:27:03 UTC
Created attachment 129116 [details]
testcase that miscompiles for me
pa@loki ~ $ for optlevel in 0 1 2 s 3; do gcc -O${optlevel} bitbug.c -o bitbug&&./bitbug 0 1&&rm ./bitbug; done vals: 0 -1 1 0 vals: 0 1 1 0 vals: 0 0 1 0 vals: 0 0 1 0 vals: 0 0 1 0 This is on i686-pc-linux-gnu gcc 4.2.0 this is already known and fixed in gcc-4.2.1 gcc-4.2.1 in the tree |