c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR instead of unsigned_...
authorMarek Polacek <polacek@redhat.com>
Fri, 28 Nov 2014 15:54:52 +0000 (15:54 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 28 Nov 2014 15:54:52 +0000 (15:54 +0000)
commit6a4da643ca8f52e973b89a76057b76fde7f0a708
tree397790c934719cf475e9c27fda782abd2d2f09d4
parent9503ade2ec5dfd8c22ce8f5f1277e4603a35169c
c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR instead of unsigned_type_node.

* c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
instead of unsigned_type_node.

* c-c++-common/ubsan/shift-8.c: New test.

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