This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13796] New: [tree-ssa] consecutive stores to globals 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: 21 Jan 2004 20:21:39 -0000
- Subject: [Bug optimization/13796] New: [tree-ssa] consecutive stores to globals not removed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
int glob1, glob2;
int foo1 (void)
{
glob1 = 0;
glob2 = 1;
glob1 = 2;
glob2 = 3;
return glob1 + glob2;
}
There should be 1 store to glob1 and glob2
the .optimized dump:
foo1 ()
{
<bb 0>:
glob1 = 0;
glob2 = 1;
glob1 = 2;
glob2 = 3;
return 5;
}
--
Summary: [tree-ssa] consecutive stores to globals 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=13796