This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28045] Bitfield, &&, and optimization => bad code generation
- From: "Jerry dot James at usu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2006 21:05:09 -0000
- Subject: [Bug c/28045] Bitfield, &&, and optimization => bad code generation
- References: <bug-28045-12835@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from Jerry dot James at usu dot edu 2006-06-17 21:05 -------
I can confirm that both the mainline and the current 4.1 branch compile the
testcase correctly. Nevertheless, both the current 4.1 branch and the mainline
(revision 114741) are still miscompiling XEmacs when any optimization at all is
used, so the testcase must be too simple. I just attached a more complex
testcase that includes much of the actual code from XEmacs. I trimmed this
down quite a bit from the original code, but it's still over 600 lines. This
code illustrates the bug on both the i386 and x86_64 platforms. You have to
link with the GMP library (-lgmp) when compiling.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045