public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/68017] New: ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form
@ 2015-10-19 17:14 su at cs dot ucdavis.edu
2015-10-20 8:25 ` [Bug tree-optimization/68017] [6 Regression] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-10-19 17:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68017
Bug ID: 68017
Summary: ICE on valid code at -O3 with -g enabled on
x86_64-linux-gnu: cannot update SSA form
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
Target Milestone: ---
The following code causes an ICE when compiled with the current gcc trunk at
-O3 with -g enabled on x86_64-linux-gnu in both 32-bit and 64-bit modes.
It is a regression from 5.2.x.
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20151019 (experimental) [trunk revision 228969] (GCC)
$
$ gcc-trunk -O3 -c small.c
$ gcc-trunk -O2 -g -c small.c
$ gcc-5.2 -O3 -g -c small.c
$
$ gcc-trunk -O3 -g -c small.c
small.c: In function ‘fn2’:
small.c:10:1: error: statement uses released SSA name:
fn2 ()
^
# DEBUG D#4 => _5 + _24
The use of _24 should have been replaced
small.c:10:1: error: statement uses released SSA name:
# DEBUG D#5 => _5 + _25
The use of _25 should have been replaced
small.c:10:1: internal compiler error: cannot update SSA form
0xb5fc1c update_ssa(unsigned int)
../../gcc-trunk/gcc/tree-into-ssa.c:3206
0xa0ccbf execute_function_todo
../../gcc-trunk/gcc/passes.c:1943
0xa0d5a3 execute_todo
../../gcc-trunk/gcc/passes.c:2033
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.
$
------------------------------------
long long a;
short
fn1 (short p1, unsigned short p2)
{
return p1 + p2;
}
short
fn2 ()
{
int b = a ? fn1 (fn2 (), a) : 0;
return b;
}
>From gcc-bugs-return-499952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 19 17:20:57 2015
Return-Path: <gcc-bugs-return-499952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71731 invoked by alias); 19 Oct 2015 17:20:57 -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 71684 invoked by uid 48); 19 Oct 2015 17:20:54 -0000
From: "chefmax at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/63888] [5 Regression] bootstrap failed when configured with -with-build-config=bootstrap-asan --disable-werror
Date: Mon, 19 Oct 2015 17:20: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: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: chefmax at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-63888-4-bxVt0592cl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63888-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63888-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: 2015-10/txt/msg01507.txt.bz2
Content-length: 481
https://gcc.gnu.org/bugzilla/show_bug.cgi?idc888
Maxim Ostapenko <chefmax at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chefmax at gcc dot gnu.org
--- Comment #40 from Maxim Ostapenko <chefmax at gcc dot gnu.org> ---
Just a little bit more fuel to the flames:
https://gcc.gnu.org/bugzilla/show_bug.cgi?idh016
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/68017] [6 Regression] ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form
2015-10-19 17:14 [Bug tree-optimization/68017] New: ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form su at cs dot ucdavis.edu
@ 2015-10-20 8:25 ` rguenth at gcc dot gnu.org
2015-10-20 9:14 ` mpolacek at gcc dot gnu.org
2015-10-20 12:34 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-20 8:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68017
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |6.0
Summary|[5 Regression] ICE on valid |[6 Regression] ICE on valid
|code at -O3 with -g enabled |code at -O3 with -g enabled
|on x86_64-linux-gnu: cannot |on x86_64-linux-gnu: cannot
|update SSA form |update SSA form
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note the issue is latent.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/68017] [6 Regression] ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form
2015-10-19 17:14 [Bug tree-optimization/68017] New: ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form su at cs dot ucdavis.edu
2015-10-20 8:25 ` [Bug tree-optimization/68017] [6 Regression] " rguenth at gcc dot gnu.org
@ 2015-10-20 9:14 ` mpolacek at gcc dot gnu.org
2015-10-20 12:34 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-10-20 9:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68017
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This must have started very recently; r228716 is still OK.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/68017] [6 Regression] ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form
2015-10-19 17:14 [Bug tree-optimization/68017] New: ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form su at cs dot ucdavis.edu
2015-10-20 8:25 ` [Bug tree-optimization/68017] [6 Regression] " rguenth at gcc dot gnu.org
2015-10-20 9:14 ` mpolacek at gcc dot gnu.org
@ 2015-10-20 12:34 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-20 12:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68017
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Oct 20 12:34:19 2015
New Revision: 229073
URL: https://gcc.gnu.org/viewcvs?rev=229073&root=gcc&view=rev
Log:
2015-10-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/68017
* tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
* gcc.dg/torture/pr68017.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr68017.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-tailcall.c
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-20 12:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-19 17:14 [Bug tree-optimization/68017] New: ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form su at cs dot ucdavis.edu
2015-10-20 8:25 ` [Bug tree-optimization/68017] [6 Regression] " rguenth at gcc dot gnu.org
2015-10-20 9:14 ` mpolacek at gcc dot gnu.org
2015-10-20 12:34 ` rguenth at gcc dot gnu.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).