public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/66772] New: ICE at -O2 and -O3 on x86_64-linux-gnu
@ 2015-07-06 2:39 su at cs dot ucdavis.edu
2015-07-06 6:59 ` [Bug tree-optimization/66772] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-07-06 2:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66772
Bug ID: 66772
Summary: ICE at -O2 and -O3 on x86_64-linux-gnu
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
-O2 and -O3 on x86_64-linux-gnu in both 32-bit and 64-bit modes.
It is a regression from 5.1.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/6.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 6.0.0 20150705 (experimental) [trunk revision 225420] (GCC)
$
$ gcc-trunk -Os small.c; ./a.out
$ gcc-5.1 -O2 small.c; ./a.out
$
$ gcc-trunk -O2 small.c
small.c: In function ‘fn4’:
small.c:44:1: internal compiler error: Segmentation fault
}
^
0xbaf42f crash_signal
../../gcc-trunk/gcc/toplev.c:360
0x83dc3b contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
../../gcc-trunk/gcc/tree.h:2971
0x83dc3b fold_comparison
../../gcc-trunk/gcc/fold-const.c:8593
0x81dce5 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
../../gcc-trunk/gcc/fold-const.c:11895
0xbf6f24 cleanup_control_expr_graph
../../gcc-trunk/gcc/tree-cfgcleanup.c:128
0xbf6f24 cleanup_control_flow_bb
../../gcc-trunk/gcc/tree-cfgcleanup.c:223
0xbf6f24 cleanup_tree_cfg_bb
../../gcc-trunk/gcc/tree-cfgcleanup.c:640
0xbf7548 cleanup_tree_cfg_1
../../gcc-trunk/gcc/tree-cfgcleanup.c:693
0xbf7548 cleanup_tree_cfg_noloop
../../gcc-trunk/gcc/tree-cfgcleanup.c:745
0xbf7548 cleanup_tree_cfg()
../../gcc-trunk/gcc/tree-cfgcleanup.c:800
0xaeb8e4 execute_function_todo
../../gcc-trunk/gcc/passes.c:1910
0xaec183 execute_todo
../../gcc-trunk/gcc/passes.c:2014
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.
$
-----------------------------------
int a, b, c, e, f;
void fn1 (int p) { }
int
fn2 (int p)
{
return a ? p % a : 0;
}
short
fn3 (int p)
{
return (1 >> p) < 1 ? 1 : p;
}
int
fn4 ()
{
int g = 0, h = 1;
if (b)
goto lbl;
fn2 (0);
if (fn3 (1))
fn1 (e && c);
if (h)
{
int i = 1;
lbl:
if (i)
return 0;
for (; g < 1; g++)
;
}
for (;;)
f || g > 0;
}
int
main ()
{
fn4 ();
return 0;
}
>From gcc-bugs-return-491506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 06 04:56:35 2015
Return-Path: <gcc-bugs-return-491506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8149 invoked by alias); 6 Jul 2015 04:56:35 -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 7700 invoked by uid 48); 6 Jul 2015 04:56:30 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/65732] stack overflow while demangling _ZNK7VectorTIfEmlIfvEES_IDTmlcvf_EcvT__EEERKS2_
Date: Mon, 06 Jul 2015 04:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
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_status resolution
Message-ID: <bug-65732-4-uxCgEgBiov@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65732-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65732-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-07/txt/msg00396.txt.bz2
Content-length: 503
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide732
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
dup
*** This bug has been marked as a duplicate of bug 61321 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/66772] ICE at -O2 and -O3 on x86_64-linux-gnu
2015-07-06 2:39 [Bug tree-optimization/66772] New: ICE at -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
@ 2015-07-06 6:59 ` rguenth at gcc dot gnu.org
2015-07-06 7:00 ` [Bug tree-optimization/66772] [6 Regression] " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-06 6:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66772
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-07-06
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/66772] [6 Regression] ICE at -O2 and -O3 on x86_64-linux-gnu
2015-07-06 2:39 [Bug tree-optimization/66772] New: ICE at -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-07-06 6:59 ` [Bug tree-optimization/66772] " rguenth at gcc dot gnu.org
@ 2015-07-06 7:00 ` rguenth at gcc dot gnu.org
2015-07-06 7:03 ` rguenth at gcc dot gnu.org
2015-07-06 14:42 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-06 7:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66772
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |6.0
Summary|ICE at -O2 and -O3 on |[6 Regression] ICE at -O2
|x86_64-linux-gnu |and -O3 on x86_64-linux-gnu
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/66772] [6 Regression] ICE at -O2 and -O3 on x86_64-linux-gnu
2015-07-06 2:39 [Bug tree-optimization/66772] New: ICE at -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-07-06 6:59 ` [Bug tree-optimization/66772] " rguenth at gcc dot gnu.org
2015-07-06 7:00 ` [Bug tree-optimization/66772] [6 Regression] " rguenth at gcc dot gnu.org
@ 2015-07-06 7:03 ` rguenth at gcc dot gnu.org
2015-07-06 14:42 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-06 7:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66772
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
This is a duplicate of PR66733.
*** This bug has been marked as a duplicate of bug 66733 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/66772] [6 Regression] ICE at -O2 and -O3 on x86_64-linux-gnu
2015-07-06 2:39 [Bug tree-optimization/66772] New: ICE at -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
` (2 preceding siblings ...)
2015-07-06 7:03 ` rguenth at gcc dot gnu.org
@ 2015-07-06 14:42 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-06 14:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66772
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Jul 6 14:41:22 2015
New Revision: 225459
URL: https://gcc.gnu.org/viewcvs?rev=225459&root=gcc&view=rev
Log:
2015-07-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/66772
* tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
values are available in the PHI node BB when there are
still unexecutable edges.
* gcc.dg/torture/pr66772-1.c: New testcase.
* gcc.dg/torture/pr66772-2.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr66733-1.c
trunk/gcc/testsuite/gcc.dg/torture/pr66733-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-ccp.c
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-06 14:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 2:39 [Bug tree-optimization/66772] New: ICE at -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-07-06 6:59 ` [Bug tree-optimization/66772] " rguenth at gcc dot gnu.org
2015-07-06 7:00 ` [Bug tree-optimization/66772] [6 Regression] " rguenth at gcc dot gnu.org
2015-07-06 7:03 ` rguenth at gcc dot gnu.org
2015-07-06 14:42 ` 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).