This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13759] New: [tree-ssa] consecutive stores to the same structure field not removed
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2004 06:40:56 -0000
- Subject: [Bug optimization/13759] New: [tree-ssa] consecutive stores to the same structure field not removed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
struct s
{
int s;
char p;
int arr[10];
};
int foo0 (struct s * f)
{
f->s = 1;
f->s = 2;
}
the .optimized dump when compiling with -O2 is:
foo0 (f)
{
<bb 0>:
f->s = 1; /* This should be eliminated*/
f->s = 2;
return;
}
--
Summary: [tree-ssa] consecutive stores to the same structure
field not removed
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13759