re PR tree-optimization/82549 (ICE at -O1 and above: verify_gimple failed)
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Oct 2017 07:38:32 +0000 (09:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Oct 2017 07:38:32 +0000 (09:38 +0200)
commit49dcd8a45afa7564e658b677735538a83ce56cc1
treec17639a5c47727a55f5035bbe921afaab74f2999
parent7a76132c80a7a5b832c93bf1ff44e14720d54a33
re PR tree-optimization/82549 (ICE at -O1 and above: verify_gimple failed)

PR tree-optimization/82549
* fold-const.c (optimize_bit_field_compare, fold_truth_andor_1):
Formatting fixes.  Instead of calling make_bit_field_ref with negative
bitpos return 0.

* gcc.c-torture/compile/pr82549.c: New test.

From-SVN: r253805
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr82549.c [new file with mode: 0644]