re PR sanitizer/66908 (Uninitialized variable when compiled with UBsan)
authorMarek Polacek <polacek@redhat.com>
Thu, 23 Jul 2015 13:54:06 +0000 (13:54 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 23 Jul 2015 13:54:06 +0000 (13:54 +0000)
commitdc891fe75e30646dea032b06ab484d814c7e05b6
treea2fc3d77b00bbd4499e2b82dfff536de8c0727c1
parent62fb67d77a7a68c5cfa7d78d751817b68ea78a87
re PR sanitizer/66908 (Uninitialized variable when compiled with UBsan)

PR sanitizer/66908
* c-ubsan.c: Include gimplify.h.
(ubsan_instrument_division): Unshare OP0 and OP1.
(ubsan_instrument_shift): Likewise.

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

From-SVN: r226110
gcc/c-family/ChangeLog
gcc/c-family/c-ubsan.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr66908.c [new file with mode: 0644]