This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30375] [4.3 Regression] tree-ssa-dse incorrectly removes struct initialization
- 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: 25 Sep 2007 13:58:46 -0000
- Subject: [Bug tree-optimization/30375] [4.3 Regression] tree-ssa-dse incorrectly removes struct initialization
- References: <bug-30375-3760@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #27 from rguenth at gcc dot gnu dot org 2007-09-25 13:58 -------
tree-dse also miscompiles perls pp_pack.c.
It removes the store to symptr->patend here:
# MPT.498_212 = VDEF <MPT.498_210>
symptr_19(D)->patend = D.14885_146;
lenptr.50_147 = (char *) patptr_128;
# MPT.498_213 = VDEF <MPT.498_212>
symptr_19(D)->patptr = lenptr.50_147;
# MPT.498_214 = VDEF <MPT.498_213>
D.14887_148 = S_measure_struct (my_perl_44(D), symptr_19(D));
ignoring the use by S_measure_struct. Which causes t/op/pack.t to fail.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |33383
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30375