Summary: | optimization bug: unsigned bitfield expands with non-zero padding bits | ||
---|---|---|---|
Product: | gcc | Reporter: | Ivanov Pavel <xk-corpse> |
Component: | target | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | aoliva, aph, bergner, fang, gcc-bugs, ismail, janis, jason, mark, pinskia, rguenth, tromey, xk-corpse |
Priority: | P3 | Keywords: | wrong-code |
Version: | 4.2.1 | ||
Target Milestone: | --- | ||
Host: | i686-pc-linux-gnu | Target: | powerpc-603-linux-gnu |
Build: | i686-pc-linux-gnu | Known to work: | |
Known to fail: | Last reconfirmed: |
Description
Ivanov Pavel
2007-08-27 16:02:56 UTC
i'm sorry, i forgot to say that bug appears with any optimization level enabled (-O1, -O2, -O3) and does not appear with optimization disabled (-O0) This works for me on a x86_64 target. (In reply to comment #2) > This works for me on a x86_64 target. > For me it works on i686-pc-linux (with cross-compiler, configured with the same method as above - crosstool-0.43 + glibc-2.3.2), works on i386-mingw32 (with cross-compiler linux->mingw32), but does not work on powerpc. Still works for me on x86_64/i686. Any ppc guys around to confirm this? This works for me using latest mainline, but using a compiler built with revision 131553, it fails. I'll try and see if we're just getting lucky now or whether it has been fixed since then. Janis, in the meantime, can you run a reg hunt on the attached testcase starting at revision 131553? A regression hunt on powerpc-linux showed that the test starts passing with: http://gcc.gnu.org/viewcvs?view=rev&rev=131823 r131823 | rguenth | 2008-01-25 12:06:31 +0000 (Fri, 25 Jan 2008) That's a fix for 33887. |