public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/43351]  New: ICE: SIGSEGV with -fgraphite-identity in 4.4
@ 2010-03-12 21:55 zsojka at seznam dot cz
  2010-03-12 21:57 ` [Bug tree-optimization/43351] " zsojka at seznam dot cz
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-12 21:55 UTC (permalink / raw)
  To: gcc-bugs

This is very similiar to pr43083. In trunk, it stopped crashing between r156745
and r156999, so it's probably fixed by r156997, fix for pr43083.

Command line:
gcc -O1 testcase.c
in 4.4, it crashes with -O[123s], but in trunk r156745 only with -O1

---- testcase.c ----
int foo(int i)
{
  if (i < 0) return 0;
  for (; i < 10; i++);
}
--------------------
(it can be further reduced so it crashes in 4.4, but not in 4.5 r156745)

Tested revisions:
r157339 - OK
r156999 - OK
r156745 - crash
r153685 - crash
4.4 r157395 - crash
4.4 r153668 - crash
4.4 r149995 - crash

Compiler output:
$ /mnt/svn/gcc-4_4/binary-157395-enable-checking/bin/gcc -O1
-fgraphite-identity -c testcase.c
testcase.c: In function 'foo':
testcase.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE: SIGSEGV with -fgraphite-identity in 4.4
           Product: gcc
           Version: 4.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug tree-optimization/43351] ICE: SIGSEGV with -fgraphite-identity in 4.4
  2010-03-12 21:55 [Bug tree-optimization/43351] New: ICE: SIGSEGV with -fgraphite-identity in 4.4 zsojka at seznam dot cz
@ 2010-03-12 21:57 ` zsojka at seznam dot cz
  2010-03-13 11:02 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-12 21:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from zsojka at seznam dot cz  2010-03-12 21:56 -------
Valgrind backtrace is the same as in pr43083:
==32751== Invalid write of size 8
==32751==    at 0x4CEAD4: link_block (cfg.c:153)
==32751==    by 0x721465: create_bb (tree-cfg.c:406)
==32751==    by 0x4D50A2: create_basic_block (cfghooks.c:620)
==32751==    by 0x72A902: gimple_split_block (tree-cfg.c:4861)
==32751==    by 0x4D512E: split_block (cfghooks.c:433)
==32751==    by 0x4D6600: make_forwarder_block (cfghooks.c:736)
==32751==    by 0xAE79F9: create_sese_edges (graphite.c:2123)
==32751==    by 0xAE9B38: graphite_transform_loops (graphite.c:2269)
==32751==    by 0x7E8006: graphite_transforms (tree-ssa-loop.c:298)
==32751==    by 0x67808C: execute_one_pass (passes.c:1277)
==32751==    by 0x6782C4: execute_pass_list (passes.c:1326)
==32751==    by 0x6782D6: execute_pass_list (passes.c:1327)
==32751==  Address 0x30 is not stack'd, malloc'd or (recently) free'd


-- 


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


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

* [Bug tree-optimization/43351] ICE: SIGSEGV with -fgraphite-identity in 4.4
  2010-03-12 21:55 [Bug tree-optimization/43351] New: ICE: SIGSEGV with -fgraphite-identity in 4.4 zsojka at seznam dot cz
  2010-03-12 21:57 ` [Bug tree-optimization/43351] " zsojka at seznam dot cz
@ 2010-03-13 11:02 ` rguenth at gcc dot gnu dot org
  2010-03-13 17:50 ` spop at gcc dot gnu dot org
  2010-03-31 18:37 ` spop at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-13 11:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-03-13 11:02 -------
If it's not a regression on the 4.4 branch then it's fixed for 4.5.  We might
want to add the testcase though.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


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


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

* [Bug tree-optimization/43351] ICE: SIGSEGV with -fgraphite-identity in 4.4
  2010-03-12 21:55 [Bug tree-optimization/43351] New: ICE: SIGSEGV with -fgraphite-identity in 4.4 zsojka at seznam dot cz
  2010-03-12 21:57 ` [Bug tree-optimization/43351] " zsojka at seznam dot cz
  2010-03-13 11:02 ` rguenth at gcc dot gnu dot org
@ 2010-03-13 17:50 ` spop at gcc dot gnu dot org
  2010-03-31 18:37 ` spop at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-03-13 17:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from spop at gcc dot gnu dot org  2010-03-13 17:49 -------
Subject: Bug 43351

Author: spop
Date: Sat Mar 13 17:49:24 2010
New Revision: 157442

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157442
Log:
Add testcase for PR43351.

2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>

        PR middle-end/43351
        * gcc.dg/graphite/id-pr43351.c

Added:
    branches/graphite/gcc/testsuite/gcc.dg/graphite/id-pr43351.c
Modified:
    branches/graphite/gcc/ChangeLog.graphite


-- 


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


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

* [Bug tree-optimization/43351] ICE: SIGSEGV with -fgraphite-identity in 4.4
  2010-03-12 21:55 [Bug tree-optimization/43351] New: ICE: SIGSEGV with -fgraphite-identity in 4.4 zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-03-13 17:50 ` spop at gcc dot gnu dot org
@ 2010-03-31 18:37 ` spop at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-03-31 18:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from spop at gcc dot gnu dot org  2010-03-31 18:37 -------
Subject: Bug 43351

Author: spop
Date: Wed Mar 31 18:36:45 2010
New Revision: 157882

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157882
Log:
Add testcase for PR43351.

2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>

        PR middle-end/43351
        * gcc.dg/graphite/id-pr43351.c

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/id-pr43351.c
Modified:
    trunk/gcc/ChangeLog.graphite


-- 


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


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

end of thread, other threads:[~2010-03-31 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-12 21:55 [Bug tree-optimization/43351] New: ICE: SIGSEGV with -fgraphite-identity in 4.4 zsojka at seznam dot cz
2010-03-12 21:57 ` [Bug tree-optimization/43351] " zsojka at seznam dot cz
2010-03-13 11:02 ` rguenth at gcc dot gnu dot org
2010-03-13 17:50 ` spop at gcc dot gnu dot org
2010-03-31 18:37 ` 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).