PR sanitizer/80875
commite30a2601e3f09ce780464ad5d9fb486823a70ff3
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 May 2017 09:31:36 +0000 (26 09:31 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 May 2017 09:31:36 +0000 (26 09:31 +0000)
treeacc4df87aa5ee82ae9d6443013506dfff818fe46
parentf416d8853b7574ced35abcca05bb3328173c83dd
PR sanitizer/80875
* fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
can be negated.

* c-c++-common/ubsan/pr80875.c: New test.

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