re PR middle-end/68142 (unsafe association of multiplication)
authorRichard Biener <rguenther@suse.de>
Thu, 29 Oct 2015 14:10:31 +0000 (14:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 29 Oct 2015 14:10:31 +0000 (14:10 +0000)
commit55db37536fcff75d42cb852e3c822f9f3fb5f04f
treeaf44e27e3907d99f2751ff4e4aa9f9a2f0ece228
parent957060b5c5d272296ccd00ebdb5179ef25123fb5
re PR middle-end/68142 (unsafe association of multiplication)

2015-10-29  Richard Biener  <rguenther@suse.de>

PR middle-end/68142
* fold-const.c (extract_muldiv_1): Avoid introducing undefined
overflow.

* c-c++-common/ubsan/pr68142.c: New testcase.

From-SVN: r229528
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr68142.c [new file with mode: 0644]