Skip to content

LLVMLinux: Patches to enable the kernel to be compiled with clang/LLVM

[email protected] linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm: LLVMLinux: Add global named register current_stack_pointer for ARMarch/arm/include/asm/thread_info.h+5 -00 replies
2/6arm: LLVMLinux: Use current_stack_pointer to calculate pt_regs addressarch/arm/include/asm/ptrace.h+2 -30 replies
3/6arm: LLVMLinux: Use current_stack_pointer for return_addressarch/arm/kernel/return_address.c+1 -20 replies
4/6arm: LLVMLinux: Use current_stack_pointer in save_stack_trace_tskarch/arm/kernel/stacktrace.c+1 -30 replies
5/6arm: LLVMLinux: Calculate current_thread_info from current_stack_pointerarch/arm/include/asm/thread_info.h+2 -20 replies
6/6arm: LLVMLinux: Use current_stack_pointer in unwind_backtracearch/arm/kernel/unwind.c+1 -20 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJan-Simon MöllerMark CharleboisWill DeaconNicolas Pitre
SeriesA-b A-b
1/6R-b R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] LLVMLinux: Patches to enable the kernel to be compiled with clang/LLVM

From: Behan Webster <[email protected]>

The LLVMLinux project aims to fully build the Linux kernel using both gcc and clang (the C front end for the LLVM compiler infrastructure project).

Clang only supports global named registers for non-allocatable registers like the stack pointer. By centralizing the definition of current_stack_pointer, the use of named registers for ARM remains largely unchanged while working for both gcc and clang.

Behan Webster (6):
arm: LLVMLinux: Add global named register current_stack_pointer for
ARM
arm: LLVMLinux: Use current_stack_pointer to calculate pt_regs address
arm: LLVMLinux: Use current_stack_pointer for return_address
arm: LLVMLinux: Use current_stack_pointer in save_stack_trace_tsk
arm: LLVMLinux: Calculate current_thread_info from
current_stack_pointer
arm: LLVMLinux: Use current_stack_pointer in unwind_backtrace

 arch/arm/include/asm/ptrace.h      | 5 ++---
 arch/arm/include/asm/thread_info.h | 9 +++++++--
 arch/arm/kernel/return_address.c   | 3 +--
 arch/arm/kernel/stacktrace.c       | 4 +---
 arch/arm/kernel/unwind.c           | 3 +--
 5 files changed, 12 insertions(+), 12 deletions(-)
Signature · 1 line
1.9.1