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

* [Bug tree-optimization/47677] [4.6 Regression] Hang in VRP
  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 ` jakub at gcc dot gnu.org
  2011-02-10 13:18 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-10 13:05 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0


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

* [Bug tree-optimization/47677] [4.6 Regression] Hang in VRP
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-10 13:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-10 13:08:28 UTC ---
I'll investigate.


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

* [Bug tree-optimization/47677] [4.6 Regression] Hang in VRP
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-10 13:33 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.02.10 13:18:04
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-10 13:18:04 UTC ---
Easy.


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

* [Bug tree-optimization/47677] [4.6 Regression] Hang in VRP
  2011-02-10 12:59 [Bug tree-optimization/47677] New: [4.6 Regression] Hang in VRP jakub at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-10 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-10 15:28:10 UTC ---
Author: rguenth
Date: Thu Feb 10 15:28:07 2011
New Revision: 170002

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170002
Log:
2011-02-10  Richard Guenther  <rguenther@suse.de>

    PR tree-optimization/47677
    * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.

    * gcc.dg/torture/pr47677.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr47677.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c


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

* [Bug tree-optimization/47677] [4.6 Regression] Hang in VRP
  2011-02-10 12:59 [Bug tree-optimization/47677] New: [4.6 Regression] Hang in VRP jakub at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-10 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-10 16:15:59 UTC ---
Fixed.


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

* [Bug tree-optimization/47677] [4.6 Regression] Hang in VRP
  2011-02-10 12:59 [Bug tree-optimization/47677] New: [4.6 Regression] Hang in VRP jakub at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-02-10 16:19 ` rguenth at gcc dot gnu.org
@ 2011-02-10 18:05 ` tg at mirbsd dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tg at mirbsd dot org @ 2011-02-10 18:05 UTC (permalink / raw)
  To: gcc-bugs

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

Thorsten Glaser <tg at mirbsd dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tg at mirbsd dot org

--- Comment #5 from Thorsten Glaser <tg at mirbsd dot org> 2011-02-10 17:57:31 UTC ---
Wow, that was quick, thanks. (I think mksh ought to become a compiler
testcase… found a lot of bugs in pcc, one in SUNWcc, and a few in gcc,
including when -fwhole-program --combine – now gone – broke twice.)


^ 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).