re PR middle-end/87623 (bytes swapped in register when comparing cause fail when...
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 17 Oct 2018 17:49:28 +0000 (17:49 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 17 Oct 2018 17:49:28 +0000 (17:49 +0000)
commit1906e1a6072d3ef64553707125d8132b24df3dcb
tree693c71ceecea588f3fb1ff65e813037c0d60417f
parent54994253d3fc00bcb7d3e9359ff31a81c0e4543a
re PR middle-end/87623 (bytes swapped in register when comparing cause fail when compiled with  -O1 or higher)

PR middle-end/87623
* fold-const.c (fold_truth_andor_1): If the right side is not constant,
bail out if both sides do not have the same storage order.

From-SVN: r265242
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr87623.c [new file with mode: 0644]