forked from pool/systemtap
d090c61581
- Add gcc12 support (bsc#1196583) New patch: PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch New patch: gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch New patch: gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch New patch: buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch New patch: gcc12-warning-suppression.patch - Add gcc12 support (bsc#1196583) New patch: PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch New patch: gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch New patch: gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch New patch: buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch New patch: gcc12-warning-suppression.patch - Add gcc12 support (bsc#1196583) New patch: PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch New patch: gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch New patch: gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch New patch: buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch New patch: gcc12-warning-suppression.patch OBS-URL: https://build.opensuse.org/request/show/958520 OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=134
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From: "Frank Ch. Eigler" <fche@redhat.com>
|
|
Date: Mon, 7 Feb 2022 13:59:54 -0500
|
|
Subject: buildrun: for LKM backend, add -Wno-infinite-recursion
|
|
Git-repo: git://sourceware.org/git/systemtap.git
|
|
Git-commit: 9295f6046518dc15678032ac54abb8a4e2916f33
|
|
References: bsc#1196583
|
|
|
|
On GCC12 / fedora rawhide, this diagnostic is currently generating
|
|
false positives w.r.t. a few memcpy type functions.
|
|
|
|
Signed-off-by: Tony Jones <tonyj@suse.de>
|
|
---
|
|
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;
|
|
|