re PR tree-optimization/69802 (gcc ICE at -O1 and above on valid code on x86_64...
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Feb 2016 09:12:37 +0000 (10:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 16 Feb 2016 09:12:37 +0000 (10:12 +0100)
commit3824a0a2e2cf8bb20cce2c6d4e817a854b7a889f
tree7a34f9afd5fef12187661d081a1af2af8cc3c539
parent4cb5f5a366efff0317dd0a432a56464eafb6f3f4
re PR tree-optimization/69802 (gcc ICE at -O1 and above  on valid code on x86_64-linux-gnu with “seg fault”)

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.

From-SVN: r233446
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr69802.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c