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/34677] PREs insert_fake_stores is mostly useless



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-01-04 17:03 -------
I think the other PR is only about VN global constants.  But also an incoming
pointer to a structure is not handled:

struct X { int i; };
int foo(struct X *a, int argc)
{
  int b;
  int c;
  int i;
  int d, e;

  for (i = 0; i < argc; i++)
    {
      e = a->i;
      a->i = 9;
    }
  return d + e;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34677


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