re PR tree-optimization/85156 (ICE with -O1 -g: gimplification failed)
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Apr 2018 21:42:51 +0000 (23:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Apr 2018 21:42:51 +0000 (23:42 +0200)
commit0d2f7959f7b5fed2f74f5ed1f3e2d7db77bb5361
tree52968a0319c6f87b841240b400e66ef4b54f813a
parent8d0d49f8b457d47539898886e3f94aaee9c572d6
re PR tree-optimization/85156 (ICE with -O1 -g: gimplification failed)

PR tree-optimization/85156
* builtins.c (fold_builtin_expect): Use save_expr on arg1 to avoid
evaluating the argument multiple times.

* c-c++-common/pr85156.c: New test.
* gcc.c-torture/execute/pr85156.c: New test.

From-SVN: r259057
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr85156.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr85156.c [new file with mode: 0644]