public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/38385] ICE with -O2 -ftree-loop-distribution
Date: Mon, 29 Dec 2008 20:22:00 -0000	[thread overview]
Message-ID: <20081229202047.17920.qmail@sourceware.org> (raw)
In-Reply-To: <bug-38385-14002@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from reichelt at gcc dot gnu dot org  2008-12-29 20:20 -------
Confirmed. Shorter testcase (crashes with "-O -ftree-loop-distribution"):

=====================================
int foo();

void bar()
{
  int i, j, x[2], y[2], z[2];

  for (i = 0; i < 2; ++i)
    if (foo())
    {
      for (j = 0; j < 2; ++j)
        if (z[j])
          z[j] = 0;

      for (j = 0; j < 2; ++j)
      {
        x[j] = 0;
        y[j] = 0;
      }
    }

  if (x[0] && y[0])
    foo();
}
=====================================


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |tree-optimization
     Ever Confirmed|0                           |1
           Keywords|                            |monitored
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-29 20:20:47
               date|                            |


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


  parent reply	other threads:[~2008-12-29 20:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-03 16:35 [Bug middle-end/38385] New: " tomby at gcc dot gnu dot org
2008-12-03 16:37 ` [Bug middle-end/38385] " tomby at gcc dot gnu dot org
2008-12-03 16:42 ` tomby at gcc dot gnu dot org
2008-12-03 16:43 ` tomby at gcc dot gnu dot org
2008-12-03 22:21 ` spop at gcc dot gnu dot org
2008-12-29 20:22 ` reichelt at gcc dot gnu dot org [this message]
2009-01-12 15:37 ` [Bug tree-optimization/38385] " tomby at gcc dot gnu dot org
2009-01-16 21:01 ` reichelt at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081229202047.17920.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).