This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/48571] [4.5/4.6/4.7 Regression] Missed data-dependence for (bogus?) reconstructed array-refs


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]