http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47677
Summary: [4.6 Regression] Hang in VRP Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: ja...@gcc.gnu.org struct S { int s; int u; }; extern int bar (void); extern struct S *baz (void); void foo (int x, struct S *y, char z, int *v, struct S *s) { int c, d; if (x & 2) d = 1; else { d = (x & 1) ? 11 : 0; while ((c = (s->s != (s->u & 1) ? s->s : bar ())) != '\0'); c = (s->s != '\\' && (s->u & 4) ? s->s : bar ()); if (c == '<') goto lab; } while ((c = ((s->u & 1) ? s->s : bar ())) != 0 && ((d != 11 && d != 17) || (v[c] & 1) == 0)) { lab:; switch (d) { case 14: if (c == '}') y = baz (); d = y->s = z == '<' ? 17 : 11; } } } at -O2 hangs in VRP pass, starting with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163724 (at least, I've killed it after 7 minutes).