]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/87248 (Bad code for masked operations involving signed...
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Oct 2018 17:33:25 +0000 (19:33 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Oct 2018 17:33:25 +0000 (19:33 +0200)
commit3176632ecd20af3d433edb1da834b08bcf0e0e61
tree18b9a31b4fcd805b9fc0fba87257743e78b6c16b
parent7685fb062cc50bad395f10d9e98084bbd21605f8
backport: re PR middle-end/87248 (Bad code for masked operations involving signed ints)

Backported from mainline
2018-09-12  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/87248
* fold-const.c (fold_ternary_loc) <case COND_EXPR>: Verify also that
BIT_AND_EXPR's second operand is a power of two.  Formatting fix.

* c-c++-common/torture/pr87248.c: New test.

From-SVN: r265121
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/pr87248.c [new file with mode: 0644]