From: Thomas Huth GCC v16.1 has a bug that causes the intel-iommu test to fail: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125180 Add a work-around for the time being until this is fixed, so we can get our CI green again. Signed-off-by: Thomas Huth --- x86/Makefile.x86_64 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x86/Makefile.x86_64 b/x86/Makefile.x86_64 index e5db2365..5b221a48 100644 --- a/x86/Makefile.x86_64 +++ b/x86/Makefile.x86_64 @@ -65,3 +65,8 @@ $(TEST_DIR)/hyperv_clock.$(bin): $(TEST_DIR)/hyperv_clock.o $(TEST_DIR)/vmx.$(bin): $(TEST_DIR)/vmx_tests.o $(TEST_DIR)/svm.$(bin): $(TEST_DIR)/svm_tests.o $(TEST_DIR)/svm_npt.$(bin): $(TEST_DIR)/svm_npt.o + +# Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125180 +fno_fuse_ops_with_volatile := $(call cc-option, -fno-fuse-ops-with-volatile-access,) +$(TEST_DIR)/intel-iommu.o: CFLAGS += $(fno_fuse_ops_with_volatile) +lib/pci-edu.o: CFLAGS += $(fno_fuse_ops_with_volatile) -- 2.54.0