This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/48571] [4.5/4.6/4.7 Regression] Missed data-dependence for (bogus?) reconstructed array-refs
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Apr 2011 12:24:57 +0000
- Subject: [Bug tree-optimization/48571] [4.5/4.6/4.7 Regression] Missed data-dependence for (bogus?) reconstructed array-refs
- Auto-submitted: auto-generated
- References: <bug-48571-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48571
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-12 12:24:46 UTC ---
To also fail for 64bit change it to
for (i = 1; i < 624; ++i)
{
__SIZE_TYPE__ ii = (__SIZE_TYPE__)i + ((__SIZE_TYPE__)-4)/4;
*(unsigned int *)((void *)c + (__SIZE_TYPE__)i * 4)
= 2 * *(unsigned int *)((void *)c + ii * 4);
}
to prevent fold from pulling the multiplication inside.