public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode)
@ 2014-08-23 13:58 su at cs dot ucdavis.edu
2014-08-26 10:55 ` [Bug tree-optimization/62238] [4.9/5 Regression] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: su at cs dot ucdavis.edu @ 2014-08-23 13:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62238
Bug ID: 62238
Summary: ICE with LTO on valid code on x86_64-linux-gnu in
verify_ssa (in 64-bit mode)
Product: gcc
Version: 5.0
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 (as
well as 4.9.x) with LTO on x86_64-linux-gnu in 64-bit mode (but not in 32-bit
mode).
It is a regression from 4.8.x.
$ 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/5.0.0/lto-wrapper
Target: x86_64-unknown-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 5.0.0 20140823 (experimental) [trunk revision 214394] (GCC)
$
$ gcc-trunk -O0 -c fn1.c
$ gcc-trunk -O0 -c main.c
$ gcc-trunk -O3 *.o
$ ./a.out
$
$ gcc-4.8 -flto -O0 -c fn1.c
$ gcc-4.8 -flto -O0 -c main.c
$ gcc-4.8 -flto -O3 *.o
$ ./a.out
$
$ gcc-trunk -flto -O0 -c fn1.c
$ gcc-trunk -flto -O0 -c main.c
$ gcc-trunk -flto -O3 *.o
fn1.c: In function ‘fn1’:
fn1.c:4:1: error: missing definition
fn1 (int p)
^
for SSA_NAME: _73 in statement:
_32 = (unsigned int) _73;
fn1.c:4:1: internal compiler error: verify_ssa failed
0xab6be1 verify_ssa(bool, bool)
../../gcc-trunk/gcc/tree-ssa.c:1055
0x830f4b execute_function_todo
../../gcc-trunk/gcc/passes.c:1758
0x831a23 execute_todo
../../gcc-trunk/gcc/passes.c:1808
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.
lto-wrapper: fatal error: gcc-trunk returned 1 exit status
compilation terminated.
/usr/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
$
$ cat fn1.c
int a[4], b, c, d;
int
fn1 (int p)
{
for (; d; d++)
{
unsigned int h;
for (h = 0; h < 3; h++)
{
if (a[c+c+h])
{
if (p)
break;
return 0;
}
b = 0;
}
}
return 0;
}
$ cat main.c
extern int fn1 (int);
int
main ()
{
fn1 (0);
return 0;
}
$
>From gcc-bugs-return-459092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 23 14:09:38 2014
Return-Path: <gcc-bugs-return-459092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1481 invoked by alias); 23 Aug 2014 14:09:37 -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 1450 invoked by uid 48); 23 Aug 2014 14:09:31 -0000
From: "d.g.gorbachev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/62239] New: [5 Regression] ICE: in execute_todo, at passes.c:1795 with LTO
Date: Sat, 23 Aug 2014 14:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: d.g.gorbachev at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-62239-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: 2014-08/txt/msg01589.txt.bz2
Content-length: 842
https://gcc.gnu.org/bugzilla/show_bug.cgi?idb239
Bug ID: 62239
Summary: [5 Regression] ICE: in execute_todo, at passes.c:1795
with LTO
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: d.g.gorbachev at gmail dot com
cat > foo.c
char *foo(unsigned n)
{
char *s = __builtin_calloc(1, n);
return __builtin___strcat_chk(s, " ", __builtin_object_size(s, 0));
}
^D
$ gcc -O -flto -shared foo.c
foo.c: In function 'foo':
foo.c:1:7: internal compiler error: in execute_todo, at passes.c:1795
char *foo(unsigned n)
^
0x84e3f13 execute_todo
../../gcc-5/gcc/passes.c:1795
Please submit a full bug report,
[...]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/62238] [4.9/5 Regression] ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) 2014-08-23 13:58 [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) su at cs dot ucdavis.edu @ 2014-08-26 10:55 ` rguenth at gcc dot gnu.org 2014-10-30 10:43 ` jakub at gcc dot gnu.org ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-08-26 10:55 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62238 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |lto Status|UNCONFIRMED |NEW Last reconfirmed| |2014-08-26 Target Milestone|--- |4.9.2 Summary|ICE with LTO on valid code |[4.9/5 Regression] ICE with |on x86_64-linux-gnu in |LTO on valid code on |verify_ssa (in 64-bit mode) |x86_64-linux-gnu in | |verify_ssa (in 64-bit mode) Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed, triggered by predictive commoning. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/62238] [4.9/5 Regression] ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) 2014-08-23 13:58 [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) su at cs dot ucdavis.edu 2014-08-26 10:55 ` [Bug tree-optimization/62238] [4.9/5 Regression] " rguenth at gcc dot gnu.org @ 2014-10-30 10:43 ` jakub at gcc dot gnu.org 2014-11-24 13:08 ` rguenth at gcc dot gnu.org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: jakub at gcc dot gnu.org @ 2014-10-30 10:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62238 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.9.2 |4.9.3 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- GCC 4.9.2 has been released. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/62238] [4.9/5 Regression] ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) 2014-08-23 13:58 [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) su at cs dot ucdavis.edu 2014-08-26 10:55 ` [Bug tree-optimization/62238] [4.9/5 Regression] " rguenth at gcc dot gnu.org 2014-10-30 10:43 ` jakub at gcc dot gnu.org @ 2014-11-24 13:08 ` rguenth at gcc dot gnu.org 2014-11-26 9:44 ` [Bug tree-optimization/62238] [4.9 " rguenth at gcc dot gnu.org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-24 13:08 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62238 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- I will have a look. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/62238] [4.9 Regression] ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) 2014-08-23 13:58 [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) su at cs dot ucdavis.edu ` (2 preceding siblings ...) 2014-11-24 13:08 ` rguenth at gcc dot gnu.org @ 2014-11-26 9:44 ` rguenth at gcc dot gnu.org 2014-11-26 9:44 ` rguenth at gcc dot gnu.org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-26 9:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62238 --- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Wed Nov 26 09:43:39 2014 New Revision: 218074 URL: https://gcc.gnu.org/viewcvs?rev=218074&root=gcc&view=rev Log: 2014-11-26 Richard Biener <rguenther@suse.de> PR tree-optimization/62238 * tree-predcom.c (ref_at_iteration): Unshare the expression before gimplifying it. (prepare_initializers_chain): Discard unused seq. * gcc.dg/torture/pr62238.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr62238.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-predcom.c ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/62238] [4.9 Regression] ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) 2014-08-23 13:58 [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) su at cs dot ucdavis.edu ` (3 preceding siblings ...) 2014-11-26 9:44 ` [Bug tree-optimization/62238] [4.9 " rguenth at gcc dot gnu.org @ 2014-11-26 9:44 ` rguenth at gcc dot gnu.org 2014-11-26 11:43 ` rguenth at gcc dot gnu.org 2014-11-26 11:43 ` rguenth at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-26 9:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62238 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|lto | Known to work| |5.0 Summary|[4.9/5 Regression] ICE with |[4.9 Regression] ICE with |LTO on valid code on |LTO on valid code on |x86_64-linux-gnu in |x86_64-linux-gnu in |verify_ssa (in 64-bit mode) |verify_ssa (in 64-bit mode) --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed on trunk sofar. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/62238] [4.9 Regression] ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) 2014-08-23 13:58 [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) su at cs dot ucdavis.edu ` (4 preceding siblings ...) 2014-11-26 9:44 ` rguenth at gcc dot gnu.org @ 2014-11-26 11:43 ` rguenth at gcc dot gnu.org 2014-11-26 11:43 ` rguenth at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-26 11:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62238 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Known to fail| |4.9.2 --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/62238] [4.9 Regression] ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) 2014-08-23 13:58 [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) su at cs dot ucdavis.edu ` (5 preceding siblings ...) 2014-11-26 11:43 ` rguenth at gcc dot gnu.org @ 2014-11-26 11:43 ` rguenth at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-26 11:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62238 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Known to fail| |4.9.2 --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed. --- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Wed Nov 26 11:42:44 2014 New Revision: 218078 URL: https://gcc.gnu.org/viewcvs?rev=218078&root=gcc&view=rev Log: 2014-11-26 Richard Biener <rguenther@suse.de> Backport from mainline 2014-11-26 Richard Biener <rguenther@suse.de> PR tree-optimization/62238 * tree-predcom.c (ref_at_iteration): Unshare the expression before gimplifying it. * gcc.dg/torture/pr62238.c: New testcase. 2014-11-25 Richard Biener <rguenther@suse.de> PR tree-optimization/61927 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering of group and pattern analysis to the one in GCC 4.8. 2014-11-07 Richard Biener <rguenther@suse.de> PR tree-optimization/63605 * fold-const.c (fold_binary_loc): Properly use element_precision for types that may not be scalar. * gcc.dg/vect/pr63605.c: New testcase. 2014-10-28 Richard Biener <rguenther@suse.de> PR middle-end/63665 * fold-const.c (fold_comparison): Properly guard simplifying against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS. * gcc.dg/pr63665.c: New testcase. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63665.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr62238.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr63605.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/fold-const.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog branches/gcc-4_9-branch/gcc/tree-predcom.c branches/gcc-4_9-branch/gcc/tree-vect-loop.c ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-11-26 11:43 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-08-23 13:58 [Bug tree-optimization/62238] New: ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode) su at cs dot ucdavis.edu 2014-08-26 10:55 ` [Bug tree-optimization/62238] [4.9/5 Regression] " rguenth at gcc dot gnu.org 2014-10-30 10:43 ` jakub at gcc dot gnu.org 2014-11-24 13:08 ` rguenth at gcc dot gnu.org 2014-11-26 9:44 ` [Bug tree-optimization/62238] [4.9 " rguenth at gcc dot gnu.org 2014-11-26 9:44 ` rguenth at gcc dot gnu.org 2014-11-26 11:43 ` rguenth at gcc dot gnu.org 2014-11-26 11:43 ` 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).