public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
@ 2013-09-07  2:58 su at cs dot ucdavis.edu
  2013-09-09  8:45 ` [Bug tree-optimization/58342] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: su at cs dot ucdavis.edu @ 2013-09-07  2:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58342
           Summary: ICE in propagate_threaded_block_debug_into, at
                    tree-ssa-threadedge.c:623
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu

The following code causes an ICE when compiled with the current gcc trunk at
-O2 and -O3 with -g on x86_64-linux (both 32-bit and 64-bit modes). 

This is a regression from 4.8.x. 

This may be the same as 58340, but I couldn't reproduce the ICE using the
testcase for 58340 (see below for pt.ii). 


$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure
--enable-languages=c,c++,objc,obj-c++,fortran,lto
--with-gmp=/usr/local/gcc-trunk --with-mpfr=/usr/local/gcc-trunk
--with-mpc=/usr/local/gcc-trunk --with-cloog=/usr/local/gcc-trunk
--prefix=/usr/local/gcc-trunk
Thread model: posix
gcc version 4.9.0 20130906 (experimental) [trunk revision 202308] (GCC) 
$
$ gcc-trunk -m32 -O2 -c small.c
$ gcc-trunk -O2 -c small.c
$ gcc-4.8 -O2 -g -c small.c  
$ gcc-trunk -O2 -g -c small.c
small.c: In function ‘main’:
small.c:8:5: internal compiler error: in propagate_threaded_block_debug_into,
at tree-ssa-threadedge.c:623
 int main ()
     ^
0xa93f53 propagate_threaded_block_debug_into(basic_block_def*,
basic_block_def*)
    ../../gcc-trunk/gcc/tree-ssa-threadedge.c:623
0xa94ca2 thread_across_edge(gimple_statement_d*, edge_def*, bool,
vec<tree_node*, va_heap, vl_ptr>*, tree_node* (*)(gimple_statement_d*,
gimple_statement_d*))
    ../../gcc-trunk/gcc/tree-ssa-threadedge.c:1019
0x9fcc34 dom_opt_leave_block
    ../../gcc-trunk/gcc/tree-ssa-dom.c:1898
0xd46ebf walk_dominator_tree(dom_walk_data*, basic_block_def*)
    ../../gcc-trunk/gcc/domwalk.c:241
0x9faa02 tree_ssa_dominator_optimize
    ../../gcc-trunk/gcc/tree-ssa-dom.c:827
0x9faa02 execute
    ../../gcc-trunk/gcc/tree-ssa-dom.c:951
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$
$
$ gcc-trunk -O2 -g -c pt.ii
$



-------------------------------------


int a, b, c, d;

int foo (int x, int y)
{
  return y == 0 ? x : 1 % y;
}

int main ()
{
  c = 0 || a;

  for (;;)
    b = foo (d, c) && 1;

  return 0;
}
>From gcc-bugs-return-429174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 07 03:28:48 2013
Return-Path: <gcc-bugs-return-429174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24685 invoked by alias); 7 Sep 2013 03:28:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24649 invoked by uid 48); 7 Sep 2013 03:28:43 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/58340] [4.9 regression] gcc/cp/pt.c:7064:1: internal compiler error: in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
Date: Sat, 07 Sep 2013 03:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58340-4-rdwdl4ECP9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58340-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58340-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-09/txt/msg00414.txt.bz2
Content-length: 532

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX340

--- Comment #4 from Zhendong Su <su at cs dot ucdavis.edu> ---
I wasn't able to reproduce the ICE using the given testcase (pt.ii) with trunk
revision 202308, but I encountered an ICE (at -O2 and -O3 with -g) in the same
source location. It's reported as 58342 with the following small reduced test:

----------------------

int a, b, c, d;

int foo (int x, int y)
{
  return y == 0 ? x : 1 % y;
}

int main ()
{
  c = 0 || a;

  for (;;)
    b = foo (d, c) && 1;

  return 0;
}


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

* [Bug tree-optimization/58342] ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
  2013-09-07  2:58 [Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623 su at cs dot ucdavis.edu
@ 2013-09-09  8:45 ` rguenth at gcc dot gnu.org
  2013-09-09  9:44 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-09  8:45 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu.org
         Depends on|                            |58340

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I cannot reproduce this one (maybe too many local patches ;)).


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

* [Bug tree-optimization/58342] ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
  2013-09-07  2:58 [Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623 su at cs dot ucdavis.edu
  2013-09-09  8:45 ` [Bug tree-optimization/58342] " rguenth at gcc dot gnu.org
@ 2013-09-09  9:44 ` jakub at gcc dot gnu.org
  2013-09-09 13:11 ` law at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-09-09  9:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps fixed by the r202379 fix?


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

* [Bug tree-optimization/58342] ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
  2013-09-07  2:58 [Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623 su at cs dot ucdavis.edu
  2013-09-09  8:45 ` [Bug tree-optimization/58342] " rguenth at gcc dot gnu.org
  2013-09-09  9:44 ` jakub at gcc dot gnu.org
@ 2013-09-09 13:11 ` law at redhat dot com
  2013-09-11  2:32 ` law at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2013-09-09 13:11 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |DUPLICATE

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on trunk.

*** This bug has been marked as a duplicate of bug 58340 ***


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

* [Bug tree-optimization/58342] ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
  2013-09-07  2:58 [Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623 su at cs dot ucdavis.edu
                   ` (2 preceding siblings ...)
  2013-09-09 13:11 ` law at redhat dot com
@ 2013-09-11  2:32 ` law at redhat dot com
  2013-09-12  7:42 ` schwab@linux-m68k.org
  2013-09-16 19:35 ` law at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2013-09-11  2:32 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 58342 depends on bug 58340, which changed state.

Bug 58340 Summary: [4.9 regression] gcc/cp/pt.c:7064:1: internal compiler error: in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58340

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


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

* [Bug tree-optimization/58342] ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
  2013-09-07  2:58 [Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623 su at cs dot ucdavis.edu
                   ` (3 preceding siblings ...)
  2013-09-11  2:32 ` law at redhat dot com
@ 2013-09-12  7:42 ` schwab@linux-m68k.org
  2013-09-16 19:35 ` law at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2013-09-12  7:42 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 58342 depends on bug 58340, which changed state.

Bug 58340 Summary: [4.9 regression] gcc/cp/pt.c:7064:1: internal compiler error: in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58340

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


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

* [Bug tree-optimization/58342] ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
  2013-09-07  2:58 [Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623 su at cs dot ucdavis.edu
                   ` (4 preceding siblings ...)
  2013-09-12  7:42 ` schwab@linux-m68k.org
@ 2013-09-16 19:35 ` law at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2013-09-16 19:35 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 58342 depends on bug 58340, which changed state.

Bug 58340 Summary: [4.9 regression] gcc/cp/pt.c:7064:1: internal compiler error: in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58340

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


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

end of thread, other threads:[~2013-09-16 19:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-07  2:58 [Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623 su at cs dot ucdavis.edu
2013-09-09  8:45 ` [Bug tree-optimization/58342] " rguenth at gcc dot gnu.org
2013-09-09  9:44 ` jakub at gcc dot gnu.org
2013-09-09 13:11 ` law at redhat dot com
2013-09-11  2:32 ` law at redhat dot com
2013-09-12  7:42 ` schwab@linux-m68k.org
2013-09-16 19:35 ` law at redhat dot com

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