public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
@ 2015-01-12 4:20 su at cs dot ucdavis.edu
2015-01-12 8:31 ` [Bug tree-optimization/64563] [5 Regression] " mpolacek at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-01-12 4:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
Bug ID: 64563
Summary: ICE with "-Wall -Wextra" at -Os and above on
x86_64-linux-gnu
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 using the current gcc trunk with
"-Wall -Wextra" at -Os and above on x86_64-linux-gnu in both 32-bit and 64-bit
modes.
It is a regression from 4.9.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 20150111 (experimental) [trunk revision 219429] (GCC)
$
$ gcc-trunk -Os -c small.c
$ gcc-4.9 -Wall -Wextra -Os -c small.c
small.c: In function ‘fn1’:
small.c:7:14: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
d = b = (a != (e | 4294967288UL));
^
$
$ gcc-trunk -Wall -Wextra -Os -c small.c
small.c: In function ‘fn1’:
small.c:7:14: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
d = b = (a != (e | 4294967288UL));
^
small.c:5:1: internal compiler error: Segmentation fault
fn1 ()
^
0xa9896f crash_signal
../../gcc-trunk/gcc/toplev.c:372
0xce9a44 contains_struct_check(tree_node const*, tree_node_structure_enum, char
const*, int, char const*)
../../gcc-trunk/gcc/tree.h:3128
0xce9a44 vrp_val_is_min
../../gcc-trunk/gcc/tree-vrp.c:241
0xcf0094 vrp_evaluate_conditional
../../gcc-trunk/gcc/tree-vrp.c:7550
0xd06454 fold_predicate_in
../../gcc-trunk/gcc/tree-vrp.c:9958
0xd06454 vrp_fold_stmt
../../gcc-trunk/gcc/tree-vrp.c:10001
0xc2c3d3 substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
../../gcc-trunk/gcc/tree-ssa-propagate.c:1148
0x10ad7e7 dom_walker::walk(basic_block_def*)
../../gcc-trunk/gcc/domwalk.c:188
0xc2bcf0 substitute_and_fold(tree_node* (*)(tree_node*), bool
(*)(gimple_stmt_iterator*), bool)
../../gcc-trunk/gcc/tree-ssa-propagate.c:1236
0xd033f4 vrp_finalize
../../gcc-trunk/gcc/tree-vrp.c:10189
0xd033f4 execute_vrp
../../gcc-trunk/gcc/tree-vrp.c:10305
0xd033f4 execute
../../gcc-trunk/gcc/tree-vrp.c:10384
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, d, f;
unsigned int e;
void
fn1 ()
{
d = b = (a != (e | 4294967288UL));
if (!d)
c = f || b;
}
>From gcc-bugs-return-472732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 12 07:04:14 2015
Return-Path: <gcc-bugs-return-472732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16481 invoked by alias); 12 Jan 2015 07:04:13 -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 16447 invoked by uid 48); 12 Jan 2015 07:04:08 -0000
From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/63470] [5 Regression] internal compiler error: in estimate_edge_growth, at ipa-inline.h:308
Date: Mon, 12 Jan 2015 07:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63470-4-NorkKjEBV6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63470-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63470-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-01/txt/msg00726.txt.bz2
Content-length: 218
https://gcc.gnu.org/bugzilla/show_bug.cgi?idc470
--- Comment #8 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
Possibly fixed by (?) :
https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00640.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
@ 2015-01-12 8:31 ` mpolacek at gcc dot gnu.org
2015-01-12 8:46 ` mpolacek at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-01-12 8:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-01-12
CC| |mpolacek at gcc dot gnu.org
Target Milestone|--- |5.0
Summary|ICE with "-Wall -Wextra" at |[5 Regression] ICE with
|-Os and above on |"-Wall -Wextra" at -Os and
|x86_64-linux-gnu |above on x86_64-linux-gnu
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed. Bisection in progress.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-01-12 8:31 ` [Bug tree-optimization/64563] [5 Regression] " mpolacek at gcc dot gnu.org
@ 2015-01-12 8:46 ` mpolacek at gcc dot gnu.org
2015-01-12 9:35 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-01-12 8:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r217638, it seems.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-01-12 8:31 ` [Bug tree-optimization/64563] [5 Regression] " mpolacek at gcc dot gnu.org
2015-01-12 8:46 ` mpolacek at gcc dot gnu.org
@ 2015-01-12 9:35 ` rguenth at gcc dot gnu.org
2015-01-12 9:45 ` trippels at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-12 9:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
` (2 preceding siblings ...)
2015-01-12 9:35 ` rguenth at gcc dot gnu.org
@ 2015-01-12 9:45 ` trippels at gcc dot gnu.org
2015-01-12 10:12 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-12 9:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org,
| |trippels at gcc dot gnu.org
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
==7793== Invalid read of size 2
==7793== at 0xCD3BC4: contains_struct_check (tree.h:3137)
==7793== by 0xCD3BC4: vrp_val_is_min(tree_node const*) (tree-vrp.c:235)
==7793== by 0xCDB8CA: vrp_evaluate_conditional(tree_code, tree_node*,
tree_node*, gimple_statement_base*) (tree-vrp.c:7544)
==7793== by 0xCF1116: fold_predicate_in (tree-vrp.c:9952)
==7793== by 0xCF1116: vrp_fold_stmt(gimple_stmt_iterator*) (tree-vrp.c:9995)
==7793== by 0xC1EB43:
substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
(tree-ssa-propagate.c:1142)
==7793== by 0x104D767: dom_walker::walk(basic_block_def*) (domwalk.c:188)
==7793== by 0xC1E450: substitute_and_fold(tree_node* (*)(tree_node*), bool
(*)(gimple_stmt_iterator*), bool) (tree-ssa-propagate.c:1230)
==7793== by 0xCEDB8F: vrp_finalize (tree-vrp.c:10183)
==7793== by 0xCEDB8F: execute_vrp (tree-vrp.c:10299)
==7793== by 0xCEDB8F: (anonymous namespace)::pass_vrp::execute(function*)
(tree-vrp.c:10378)
==7793== by 0x9E70E2: execute_one_pass(opt_pass*) (passes.c:2311)
==7793== by 0x9E7545: execute_pass_list_1(opt_pass*) (passes.c:2363)
==7793== by 0x9E7557: execute_pass_list_1(opt_pass*) (passes.c:2364)
==7793== by 0x9E7598: execute_pass_list(function*, opt_pass*)
(passes.c:2374)
==7793== by 0x700CDB: cgraph_node::expand() (cgraphunit.c:1797)
==7793== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7793==
small.c:5
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
` (3 preceding siblings ...)
2015-01-12 9:45 ` trippels at gcc dot gnu.org
@ 2015-01-12 10:12 ` jakub at gcc dot gnu.org
2015-01-12 20:48 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 10:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The != VR_VARYING is obviously bogus. Need to find out if what
Diego meant to write was == VR_RANGE or == VR_RANGE || == VR_ANTI_RANGE.
VR_UNDEFINED certainly doesn't have vr0->min/vr0->max set.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
` (4 preceding siblings ...)
2015-01-12 10:12 ` jakub at gcc dot gnu.org
@ 2015-01-12 20:48 ` jakub at gcc dot gnu.org
2015-01-12 20:53 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 20:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jan 12 20:48:09 2015
New Revision: 219493
URL: https://gcc.gnu.org/viewcvs?rev=219493&root=gcc&view=rev
Log:
PR tree-optimization/64563
* tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
instead of != VR_VARYING.
* gcc.dg/pr64563.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr64563.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vrp.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
` (5 preceding siblings ...)
2015-01-12 20:48 ` jakub at gcc dot gnu.org
@ 2015-01-12 20:53 ` jakub at gcc dot gnu.org
2015-01-14 20:22 ` jakub at gcc dot gnu.org
2015-02-01 21:51 ` jakub at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 20:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
` (6 preceding siblings ...)
2015-01-12 20:53 ` jakub at gcc dot gnu.org
@ 2015-01-14 20:22 ` jakub at gcc dot gnu.org
2015-02-01 21:51 ` jakub at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-14 20:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jan 14 20:21:49 2015
New Revision: 219612
URL: https://gcc.gnu.org/viewcvs?rev=219612&root=gcc&view=rev
Log:
Backported from mainline
2015-01-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/64563
* tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
instead of != VR_VARYING.
* gcc.dg/pr64563.c: New test.
Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr64563.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-vrp.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/64563] [5 Regression] ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
` (7 preceding siblings ...)
2015-01-14 20:22 ` jakub at gcc dot gnu.org
@ 2015-02-01 21:51 ` jakub at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-01 21:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64563
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sun Feb 1 21:50:53 2015
New Revision: 220332
URL: https://gcc.gnu.org/viewcvs?rev=220332&root=gcc&view=rev
Log:
Backported from mainline
2015-01-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/64563
* tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
instead of != VR_VARYING.
* gcc.dg/pr64563.c: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/pr64563.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-vrp.c
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-02-01 21:51 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-12 4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-01-12 8:31 ` [Bug tree-optimization/64563] [5 Regression] " mpolacek at gcc dot gnu.org
2015-01-12 8:46 ` mpolacek at gcc dot gnu.org
2015-01-12 9:35 ` rguenth at gcc dot gnu.org
2015-01-12 9:45 ` trippels at gcc dot gnu.org
2015-01-12 10:12 ` jakub at gcc dot gnu.org
2015-01-12 20:48 ` jakub at gcc dot gnu.org
2015-01-12 20:53 ` jakub at gcc dot gnu.org
2015-01-14 20:22 ` jakub at gcc dot gnu.org
2015-02-01 21:51 ` jakub 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).