public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/47677] New: [4.6 Regression] Hang in VRP
@ 2011-02-10 12:59 jakub at gcc dot gnu.org
  2011-02-10 13:05 ` [Bug tree-optimization/47677] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-10 12:59 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: jakub@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).


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-10 17:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-10 12:59 [Bug tree-optimization/47677] New: [4.6 Regression] Hang in VRP jakub at gcc dot gnu.org
2011-02-10 13:05 ` [Bug tree-optimization/47677] " jakub at gcc dot gnu.org
2011-02-10 13:18 ` rguenth at gcc dot gnu.org
2011-02-10 13:33 ` rguenth at gcc dot gnu.org
2011-02-10 15:44 ` rguenth at gcc dot gnu.org
2011-02-10 16:19 ` rguenth at gcc dot gnu.org
2011-02-10 18:05 ` tg at mirbsd dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).