This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18031] OR of a bitfield and a constant is not optimized at tree level
- 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: 24 Oct 2006 13:07:40 -0000
- Subject: [Bug tree-optimization/18031] OR of a bitfield and a constant is not optimized at tree level
- References: <bug-18031-5009@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from rguenth at gcc dot gnu dot org 2006-10-24 13:07 -------
We should at least fold
b->bit = (<unnamed type>) (unsigned char) ((signed char) b->bit | 1);
to
b->bit = (<unnamed type>) ((signed char) b->bit | 1);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18031