From 9295f6046518dc15678032ac54abb8a4e2916f33 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 7 Feb 2022 13:59:54 -0500 Subject: [PATCH] buildrun: for LKM backend, add -Wno-infinite-recursion On GCC12 / fedora rawhide, this diagnostic is currently generating false positives w.r.t. a few memcpy type functions. --- buildrun.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildrun.cxx b/buildrun.cxx index 2a18fe3b7..ecaeedaac 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -601,6 +601,9 @@ compile_pass (systemtap_session& s) // Accept extra diagnostic-suppression pragmas etc. o << "EXTRA_CFLAGS += -Wno-pragmas" << endl; + // Suppress gcc12 diagnostic bug in kernel-devel for 5.16ish + o << "EXTRA_CFLAGS += -Wno-infinite-recursion" << endl; + // PR25845: Recent gcc (seen on 9.3.1) warns fairly common 32-bit pointer-conversions: o << "EXTRA_CFLAGS += $(call cc-option,-Wno-pointer-to-int-cast)" << endl; o << "EXTRA_CFLAGS += $(call cc-option,-Wno-int-to-pointer-cast)" << endl; -- 2.43.5