Rust for Linux List
 help / color / mirror / Atom feed
* [PATCH] Add -fzero-init-padding-bits to bindgen_skip_cflags
@ 2025-01-29 21:50 Justin M. Forbes
  2025-02-05 23:18 ` Miguel Ojeda
  2025-02-06 15:45 ` Kees Cook
  0 siblings, 2 replies; 6+ messages in thread
From: Justin M. Forbes @ 2025-01-29 21:50 UTC (permalink / raw)
  To: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, rust-for-linux, linux-kernel
  Cc: Justin M. Forbes

This seems to break the build when building with gcc15.

Unable to generate bindings: ClangDiagnostic("error: unknown argument: '-fzero-init-padding-bits=all'\n")

Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
---
 rust/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/Makefile b/rust/Makefile
index 71a05a3c895a..3c3da7faebb3 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -240,6 +240,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
 	-fzero-call-used-regs=% -fno-stack-clash-protection \
 	-fno-inline-functions-called-once -fsanitize=bounds-strict \
 	-fstrict-flex-arrays=% -fmin-function-alignment=% \
+	-fzero-init-padding-bits=% \
 	--param=% --param asan-%
 
 # Derived from `scripts/Makefile.clang`.
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-06 18:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-29 21:50 [PATCH] Add -fzero-init-padding-bits to bindgen_skip_cflags Justin M. Forbes
2025-02-05 23:18 ` Miguel Ojeda
2025-02-06 15:45 ` Kees Cook
2025-02-06 15:55   ` Miguel Ojeda
2025-02-06 18:48     ` Kees Cook
2025-02-06 18:58       ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox