This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15310] [tree-ssa] Optimize an addition in a bit field
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2004 12:48:01 -0000
- Subject: [Bug optimization/15310] [tree-ssa] Optimize an addition in a bit field
- References: <20040506083745.15310.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-06 12:48 -------
Confirmed.
And this should also be optimizated:
struct {
unsigned int bit0:1;
unsigned int ubyte:31;
} sdata;
void foo1()
{
unsigned int i = sdata.ubyte;
unsigned int i1 = i+1;
sdata.ubyte = i1;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-05-06 12:48:01
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15310