This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/69802] [4.9/5 Regression] gcc ICE at -O1 and above on valid code on x86_64-linux-gnu with âseg faultâ
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2016 12:31:11 +0000
- Subject: [Bug tree-optimization/69802] [4.9/5 Regression] gcc ICE at -O1 and above on valid code on x86_64-linux-gnu with âseg faultâ
- Auto-submitted: auto-generated
- References: <bug-69802-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69802
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Mar 30 12:30:40 2016
New Revision: 234550
URL: https://gcc.gnu.org/viewcvs?rev=234550&root=gcc&view=rev
Log:
Backported from mainline
2016-02-16 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/69802
* tree-ssa-reassoc.c (update_range_test): If op is
SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
op == 1 test of precision 1 integral op, otherwise handle
that case as op itself. Fix up formatting.
(optimize_range_tests_to_bit_test, optimize_range_tests): Fix
up formatting.
* gcc.dg/pr69802.c: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr69802.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/tree-ssa-reassoc.c