Handle instrumented expr for unsigned-integer-overflow
2019-09-19 Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
c-family/
* c-ubsan.c (ubsan_compound_instrumented_expr_p): New function.
* c-ubsan.h (ubsan_compound_instrumented_expr_p): New prototype.
c/
* c-typeck.c (build_binary_op): Handle instrumented expr for
SANITIZE_UI_OVERFLOW.
cp/
* typeck.c (cp_build_binary_op): Same.
testsuite/
* c-c++-common/isan/invalid-ui-oveflow-1.c: New testcase.
Change-Id: I8e0fbf443da866bf8756d848fd7bf2ab7e858f06