xen/ubsan: Support for -fsanitise=builtin
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sun, 12 May 2019 13:17:08 +0000 (14:17 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Jun 2019 18:04:03 +0000 (19:04 +0100)
commit0ff8c6cf906060e3612e2243aca7c3cb5e9c3b42
tree23dc3ae16966e4efbc836bb024a32566d7dfcb42
parent597c57becbeba21ff9f0c078ba2e32973d09d258
xen/ubsan: Support for -fsanitise=builtin

This fixes the UBSAN build for GCC 8 and later.  The sanitiser checks for
passing 0 to the ctz()/clz() builtins.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/ubsan/ubsan.c
xen/common/ubsan/ubsan.h