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/30840] [4.3 Regression] ice for legal code with flags -O3 -fno-strict-aliasing



------- Comment #13 from reichelt at gcc dot gnu dot org  2007-08-21 19:50 -------
Here's an even smaller testcase:

=============================
int *p;

inline int foo(int *q)
{
  if (*q)
    *q = 0;
  return *q;
}

void bar(int *r, int i)
{
  int *s;
  while (--i)
    *(s = r) = foo(p);
  ++(*s);
  *s = foo(p);
}
==============================


-- 


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


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