public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/43026]  New: ICE in sese.c with -fgraphite-identity in 447.dealII
@ 2010-02-11  1:01 janis at gcc dot gnu dot org
  2010-02-11  1:02 ` [Bug tree-optimization/43026] " janis at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-02-11  1:01 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]

GCC trunk gets an internal compiler error when building SPEC CPU2006 test
447.dealII on powerpc64-linux with "-O2 -fgraphite-identity" or "-O2
-floop-parallelize-all" for either -m32 or -m64, as demonstrated by a minimized
testcase that I'll attach to this PR.  Perhaps someone else will be able to
minimize it more.

elm3b149% /home/janis/tools/gcc-trunk-anonsvn/bin/g++ -c -O2
-fgraphite-identity bug.cc
bug.cc: In member function ‘void Base<dim>::getf2d(vector<Tensor<2, dim> >&)
const [with int dim = 3]’:
bug.cc:38:6: internal compiler error: in expand_scalar_variables_expr, at
sese.c:907
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The testcase and dealII compile correctly with GCC 4.4.2 using "-O2
-fgraphite-identity".  The failure starts with this patch:

    http://gcc.gnu.org/viewcvs?view=rev&rev=155739

    r155739 | spop | 2010-01-08 16:07:18 +0000 (Fri, 08 Jan 2010)


-- 
           Summary: ICE in sese.c with -fgraphite-identity in 447.dealII
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc64-linux


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


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

* [Bug tree-optimization/43026] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
@ 2010-02-11  1:02 ` janis at gcc dot gnu dot org
  2010-02-11 10:05 ` [Bug tree-optimization/43026] [4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-02-11  1:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from janis at gcc dot gnu dot org  2010-02-11 01:02 -------
Created an attachment (id=19837)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19837&action=view)
minimized testcase


-- 


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


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

* [Bug tree-optimization/43026] [4.5 Regression] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
  2010-02-11  1:02 ` [Bug tree-optimization/43026] " janis at gcc dot gnu dot org
@ 2010-02-11 10:05 ` rguenth at gcc dot gnu dot org
  2010-02-11 16:57 ` [Bug tree-optimization/43026] [4.5 Regression][graphite] " rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-11 10:05 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.4.2
            Summary|ICE in sese.c with -        |[4.5 Regression] ICE in
                   |fgraphite-identity in       |sese.c with -fgraphite-
                   |447.dealII                  |identity in 447.dealII
   Target Milestone|---                         |4.5.0


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
  2010-02-11  1:02 ` [Bug tree-optimization/43026] " janis at gcc dot gnu dot org
  2010-02-11 10:05 ` [Bug tree-optimization/43026] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2010-02-11 16:57 ` rguenth at gcc dot gnu dot org
  2010-02-17 17:13 ` uramakrishna at gmail dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-11 16:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-02-11 16:56 -------
Confirmed on i?86-linux.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
 GCC target triplet|powerpc64-linux             |powerpc64-linux, i?86-*-
                   |                            |linux
           Priority|P3                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2010-02-11 16:56:36
               date|                            |


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-02-11 16:57 ` [Bug tree-optimization/43026] [4.5 Regression][graphite] " rguenth at gcc dot gnu dot org
@ 2010-02-17 17:13 ` uramakrishna at gmail dot com
  2010-02-17 17:33 ` zsojka at seznam dot cz
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: uramakrishna at gmail dot com @ 2010-02-17 17:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from uramakrishna at gmail dot com  2010-02-17 17:13 -------
Is this bug still around (r156830)? I have a 64 bit linux machine and it seems
to be fine.


-- 


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-02-17 17:13 ` uramakrishna at gmail dot com
@ 2010-02-17 17:33 ` zsojka at seznam dot cz
  2010-02-17 23:29 ` zsojka at seznam dot cz
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: zsojka at seznam dot cz @ 2010-02-17 17:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from zsojka at seznam dot cz  2010-02-17 17:33 -------
r156830 still crashes for me, both at x86 and x86_64 (with -m32)


-- 


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-02-17 17:33 ` zsojka at seznam dot cz
@ 2010-02-17 23:29 ` zsojka at seznam dot cz
  2010-02-22  0:42 ` grosser at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: zsojka at seznam dot cz @ 2010-02-17 23:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from zsojka at seznam dot cz  2010-02-17 23:28 -------
Created an attachment (id=19903)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19903&action=view)
different testcase, reduced

Fails at all -O1, -O2 and -O3 levels. I am not sure if it is the same problem,
but it fails at the same place, so I am attaching it here.

$ /mnt/svn/gcc-trunk/binary-156830-lto/bin/g++ -O1 -fgraphite-identity -c
pr43026-2.C
pr43026-2.C: In function &#8216;(static initializers for pr43026-2.C)&#8217;:
pr43026-2.C:10:4: internal compiler error: in expand_scalar_variables_expr, at
sese.c:902
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-02-17 23:29 ` zsojka at seznam dot cz
@ 2010-02-22  0:42 ` grosser at gcc dot gnu dot org
  2010-02-22 13:11 ` spop at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: grosser at gcc dot gnu dot org @ 2010-02-22  0:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from grosser at gcc dot gnu dot org  2010-02-22 00:42 -------
I believe this commit introduced the bug:

    Remove COMPONENT_REF limitation in SCoP detection.

    2010-01-08  Sebastian Pop  <sebastian.pop@amd.com>

        * graphite-scop-detection.c (exclude_component_ref): Removed.
        (is_simple_operand): Removed.
        (stmt_simple_for_scop_p): Remove use of is_simple_operand.

    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@155738

We allow SCoPs that we cannot handle in the backend.


-- 


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2010-02-22  0:42 ` grosser at gcc dot gnu dot org
@ 2010-02-22 13:11 ` spop at gcc dot gnu dot org
  2010-02-22 15:20 ` spop at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-02-22 13:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from spop at gcc dot gnu dot org  2010-02-22 13:11 -------
Subject: Bug 43026

Author: spop
Date: Mon Feb 22 13:10:49 2010
New Revision: 156956

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156956
Log:
Fix PR43026: handle COMPONENT_REFs in expand scalar expressions.

2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>

        PR middle-end/43026
        * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.

        * g++.dg/graphite/pr43026.C: New.

Added:
    branches/graphite/gcc/testsuite/g++.dg/graphite/pr43026.C
Modified:
    branches/graphite/gcc/ChangeLog.graphite
    branches/graphite/gcc/sese.c


-- 


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2010-02-22 13:11 ` spop at gcc dot gnu dot org
@ 2010-02-22 15:20 ` spop at gcc dot gnu dot org
  2010-02-23 12:59 ` spop at gcc dot gnu dot org
  2010-02-23 13:04 ` spop at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-02-22 15:20 UTC (permalink / raw)
  To: gcc-bugs



-- 

spop at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |spop at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2010-02-11 16:56:36         |2010-02-22 15:20:13
               date|                            |


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2010-02-22 15:20 ` spop at gcc dot gnu dot org
@ 2010-02-23 12:59 ` spop at gcc dot gnu dot org
  2010-02-23 13:04 ` spop at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-02-23 12:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from spop at gcc dot gnu dot org  2010-02-23 12:58 -------
Subject: Bug 43026

Author: spop
Date: Tue Feb 23 12:58:44 2010
New Revision: 156993

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156993
Log:
Fix PR43026: handle COMPONENT_REFs in expand scalar expressions.

2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>

        PR middle-end/43026
        * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.

        * g++.dg/graphite/pr43026.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/graphite/pr43026.C
Modified:
    trunk/gcc/ChangeLog.graphite
    trunk/gcc/sese.c


-- 


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


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

* [Bug tree-optimization/43026] [4.5 Regression][graphite] ICE in sese.c with -fgraphite-identity in 447.dealII
  2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2010-02-23 12:59 ` spop at gcc dot gnu dot org
@ 2010-02-23 13:04 ` spop at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-02-23 13:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from spop at gcc dot gnu dot org  2010-02-23 13:04 -------
Fixed.


-- 

spop at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-02-23 13:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-11  1:01 [Bug tree-optimization/43026] New: ICE in sese.c with -fgraphite-identity in 447.dealII janis at gcc dot gnu dot org
2010-02-11  1:02 ` [Bug tree-optimization/43026] " janis at gcc dot gnu dot org
2010-02-11 10:05 ` [Bug tree-optimization/43026] [4.5 Regression] " rguenth at gcc dot gnu dot org
2010-02-11 16:57 ` [Bug tree-optimization/43026] [4.5 Regression][graphite] " rguenth at gcc dot gnu dot org
2010-02-17 17:13 ` uramakrishna at gmail dot com
2010-02-17 17:33 ` zsojka at seznam dot cz
2010-02-17 23:29 ` zsojka at seznam dot cz
2010-02-22  0:42 ` grosser at gcc dot gnu dot org
2010-02-22 13:11 ` spop at gcc dot gnu dot org
2010-02-22 15:20 ` spop at gcc dot gnu dot org
2010-02-23 12:59 ` spop at gcc dot gnu dot org
2010-02-23 13:04 ` spop 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).