public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/38385]  New: ICE with -O2 -ftree-loop-distribution
@ 2008-12-03 16:35 tomby at gcc dot gnu dot org
  2008-12-03 16:37 ` [Bug middle-end/38385] " tomby at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2008-12-03 16:35 UTC (permalink / raw)
  To: gcc-bugs

gcc ICEs with options -O2 -ftree-loop-distribution

reloadx.i:24: internal compiler error: Segmentation fault

Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/abuild/tbily/install/
--disable-bootstrap --disable-multilib --enable-languages=c,c++
Thread model: posix
gcc version 4.4.0 20081203 (experimental) (GCC)


-- 
           Summary: ICE with -O2 -ftree-loop-distribution
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tomby at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug middle-end/38385] ICE with -O2 -ftree-loop-distribution
  2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
@ 2008-12-03 16:37 ` tomby at gcc dot gnu dot org
  2008-12-03 16:42 ` tomby at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2008-12-03 16:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tomby at gcc dot gnu dot org  2008-12-03 16:35 -------
Created an attachment (id=16816)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16816&action=view)
ICE with -O2 -ftree-loop-distribution


-- 


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


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

* [Bug middle-end/38385] ICE with -O2 -ftree-loop-distribution
  2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution 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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2008-12-03 16:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tomby at gcc dot gnu dot org  2008-12-03 16:40 -------
It seems that after removing bbs in generate_builtin (tree-loop-distribution.c)
some phis has bad incoming edges.


-- 


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


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

* [Bug middle-end/38385] ICE with -O2 -ftree-loop-distribution
  2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution 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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2008-12-03 16:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tomby at gcc dot gnu dot org  2008-12-03 16:41 -------
Created an attachment (id=16817)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16817&action=view)
This patch fixes the problem


-- 


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


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

* [Bug middle-end/38385] ICE with -O2 -ftree-loop-distribution
  2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  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 ` [Bug tree-optimization/38385] " reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-12-03 22:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from spop at gcc dot gnu dot org  2008-12-03 22:20 -------
Subject: Re:  ICE with -O2 -ftree-loop-distribution

The patch looks good.  Please fix formatting of the braces on the for
stmt, and also add a more detailed description for the function
fix_phis, saying what the arguments are doing.

Thanks,
Sebastian


-- 


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


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

* [Bug tree-optimization/38385] ICE with -O2 -ftree-loop-distribution
  2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-12-03 22:21 ` spop at gcc dot gnu dot org
@ 2008-12-29 20:22 ` reichelt at gcc dot gnu dot org
  2009-01-12 15:37 ` tomby at gcc dot gnu dot org
  2009-01-16 21:01 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-29 20:22 UTC (permalink / raw)
  To: gcc-bugs



------- 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


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

* [Bug tree-optimization/38385] ICE with -O2 -ftree-loop-distribution
  2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-12-29 20:22 ` [Bug tree-optimization/38385] " reichelt at gcc dot gnu dot org
@ 2009-01-12 15:37 ` tomby at gcc dot gnu dot org
  2009-01-16 21:01 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2009-01-12 15:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from tomby at gcc dot gnu dot org  2009-01-12 15:37 -------
Subject: Bug 38385

Author: tomby
Date: Mon Jan 12 15:37:09 2009
New Revision: 143291

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143291
Log:
        PR middlend/38385
        * tree-loop-distribution.c (prop_phis): New function.
        (generate_builtin): Call prop_phis.
        * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr38385.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-loop-distribution.c


-- 


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


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

* [Bug tree-optimization/38385] ICE with -O2 -ftree-loop-distribution
  2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-01-12 15:37 ` tomby at gcc dot gnu dot org
@ 2009-01-16 21:01 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-01-16 21:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2009-01-16 21:01 -------
Fixed.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


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

end of thread, other threads:[~2009-01-16 21:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution 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 ` [Bug tree-optimization/38385] " reichelt at gcc dot gnu dot org
2009-01-12 15:37 ` tomby at gcc dot gnu dot org
2009-01-16 21:01 ` reichelt at gcc dot gnu 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).