]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
xen: Drop CONFIG_CC_HAS_UBSAN
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Apr 2025 11:35:54 +0000 (12:35 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Apr 2025 14:47:48 +0000 (15:47 +0100)
All supported toolchains now have it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Kconfig
xen/Kconfig.debug

index 2128f0ccfc0b7d8ba95022cec7288e3c558effff..72fdb8376087853abe7981b04ca4f16376decefe 100644 (file)
@@ -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
index f7cc5ffaabd75d36b121aac1e614db91c2ce3712..c4a8d86912e09b1038deba982048dcd954eda74e 100644 (file)
@@ -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.