2018-07-12 Richard Biener <rguenther@suse.de>
commit77c201fd5f88d6b3a07337e92de54ef283681226
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jul 2018 07:11:50 +0000 (12 07:11 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jul 2018 07:11:50 +0000 (12 07:11 +0000)
tree90f7429c522f65ad7aba4fa7402f5684f598d6e5
parent036af85e5856e3a64c49afa31a2ff249628f1fbe
2018-07-12  Richard Biener  <rguenther@suse.de>

PR middle-end/86479
* fold-const.c (fold_binary_op_with_conditional_arg): Do not
move possibly trapping operations into the conditional.

* gcc.dg/graphite/pr86479.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262574 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr86479.c [new file with mode: 0644]