mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] add first LLVM/clang support
@ 2024-11-25 15:09 Ahmad Fatoum
  2024-11-25 15:09 ` [PATCH 1/4] sandbox: use host system's UBSan library Ahmad Fatoum
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2024-11-25 15:09 UTC (permalink / raw)
  To: barebox

We can't compile all of barebox with clang yet, because we use
GCC-specific extensions, especially C-code in naked functions, which we
is judiciously used on 32-bit ARM platforms.

Nevertheless, sandbox can already be used with clang and it's useful for
incoming support for libfuzzer, so let's add support to Kbuild.

Ahmad Fatoum (4):
  sandbox: use host system's UBSan library
  common: implement CC_IS_GCC and CC_IS_CLANG symbols
  fixdep: sync with Linux
  Makefile: add LLVM/clang support

 Makefile                 |  45 ++++--
 arch/arm/Kconfig         |   3 +-
 arch/sandbox/Makefile    |   4 +
 common/Kconfig           |  16 +++
 lib/Kconfig.ubsan        |   3 +
 lib/Makefile             |   2 +-
 scripts/Kbuild.include   |  31 ++--
 scripts/Kconfig.include  |   6 +
 scripts/Makefile.build   |   8 +-
 scripts/Makefile.clang   |   9 ++
 scripts/Makefile.ubsan   |  33 +++--
 scripts/basic/Makefile   |   2 +
 scripts/basic/fixdep.c   | 297 ++++++++++++++++++++++++---------------
 scripts/cc-version.sh    |  52 +++++++
 scripts/compiler.h       |  20 +--
 scripts/include/xalloc.h |  34 +++++
 scripts/mod/sumversion.c |  19 ++-
 17 files changed, 411 insertions(+), 173 deletions(-)
 create mode 100644 scripts/Makefile.clang
 create mode 100755 scripts/cc-version.sh
 create mode 100644 scripts/include/xalloc.h

-- 
2.39.5




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

end of thread, other threads:[~2024-12-02  7:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-25 15:09 [PATCH 0/4] add first LLVM/clang support Ahmad Fatoum
2024-11-25 15:09 ` [PATCH 1/4] sandbox: use host system's UBSan library Ahmad Fatoum
2024-11-25 15:09 ` [PATCH 2/4] common: implement CC_IS_GCC and CC_IS_CLANG symbols Ahmad Fatoum
2024-11-25 15:09 ` [PATCH 3/4] fixdep: sync with Linux Ahmad Fatoum
2024-11-25 15:09 ` [PATCH 4/4] Makefile: add LLVM/clang support Ahmad Fatoum
2024-12-02  7:39 ` [PATCH 0/4] add first " Sascha Hauer

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