The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [sparc] Use of -fcall-used-* flags in Makefile?
@ 2024-03-16 14:59 Koakuma
  2024-03-19 22:16 ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Koakuma @ 2024-03-16 14:59 UTC (permalink / raw)
  To: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
  Cc: davem@davemloft.net, ndesaulniers@google.com, arnd@arndb.de

Hello, first time poster so apologies if I posted to the wrong list.

Anyone knows why the SPARC makefiles (arch/sparc/Makefile and
arch/sparc/vdso/Makefile) set `-fcall-used-g5` and  `-fcall-used-g7`
in their CFLAGS?
Would it be safe if the kernel is compiled without those flags?

The context is that there's an effort to make the sparc64 kernel build
under LLVM/clang, and if possible we'd like to build the kernel without
those flags, at least when building with clang, since it simplifies
a lot of things on the LLVM side.
(LLVM tracker: https://github.com/llvm/llvm-project/issues/40792)

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

end of thread, other threads:[~2024-03-24  8:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-16 14:59 [sparc] Use of -fcall-used-* flags in Makefile? Koakuma
2024-03-19 22:16 ` Sam Ravnborg
2024-03-23 16:37   ` Koakuma
2024-03-24  8:53     ` Sam Ravnborg

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