From: Andrew Cooper Date: Tue, 22 Apr 2025 11:35:54 +0000 (+0100) Subject: xen: Drop CONFIG_CC_HAS_UBSAN X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c249be1de9c6e67e41ee614afb0e41d0ef0ab4d1;p=people%2Fandrewcoop%2Fxen.git xen: Drop CONFIG_CC_HAS_UBSAN All supported toolchains now have it. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- diff --git a/xen/Kconfig b/xen/Kconfig index 2128f0ccfc..72fdb83760 100644 --- a/xen/Kconfig +++ b/xen/Kconfig @@ -37,10 +37,6 @@ config CC_HAS_VISIBILITY_ATTRIBUTE config CC_SPLIT_SECTIONS bool -# Compiler supports -fsanitize=undefined -config CC_HAS_UBSAN - def_bool $(cc-option,-fsanitize=undefined) - # Set code alignment. # # Allow setting on a boolean basis, and then convert such selection to an diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug index f7cc5ffaab..c4a8d86912 100644 --- a/xen/Kconfig.debug +++ b/xen/Kconfig.debug @@ -98,7 +98,7 @@ config SCRUB_DEBUG config UBSAN bool "Undefined behaviour sanitizer" - depends on HAS_UBSAN && CC_HAS_UBSAN + depends on HAS_UBSAN help Enable undefined behaviour sanitizer. It uses compiler to insert code snippets so that undefined behaviours in C are detected during runtime.