Import UBSAN_NULL check bugfix from upstream
The whole original patch introduces too many changes including new
features so only the changes crucial for bugfix are imported.
The ASan internal function mode is switched to R together with UBSan one.
Upstream hash:
32cf7025dfa4a65f3e4dafb3b46b4816b119a75b
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219695
138bc75d-0d04-0410-961f-
82ee72b054a4
Change-Id: I22448d08ddca269f802844b284b3177c3ae97404
Signed-off-by: Slava Barinov <v.barinov@samsung.com>