This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37869] PTA results wrong for "non-pointer" variables
- 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 Nov 2008 11:58:29 -0000
- Subject: [Bug tree-optimization/37869] PTA results wrong for "non-pointer" variables
- References: <bug-37869-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2008-11-25 11:58 -------
Simpler testcase at -O
void
foo (unsigned long *start, unsigned long *end)
{
unsigned long *temp = end - 1;
while (end > start)
*end-- = *temp--;
}
blocks alias-improvements branch (causes the store and load to be deleted).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37869