[llvmlinux] [PATCH] x86/hweight: LLVMLinux: Fix __arch_hweight{32, 64}() for compilation with clang

Jan-Simon Moeller dl9pf at gmx.de
Sun Sep 13 16:50:34 UTC 2015


Am Sonntag, 13. September 2015, 17:20:24 schrieb Sedat Dilek:
> Adapted partly from the original patch (see [1]).
> This patch was formerly together with [2] and provided as a single 
> To quote [3]:
> "interesting, Jan-Simon said that patch was still part of the llvmlinux
> tree (it is really mandatory for clang) so i'm not sure what's going 

Read the code, Luke.
We still patch it, but in the Makefile: see [1]


> See also [3] for an explanation of PaX Team on how to do a proper fix.
What might manifest is an issue with the asm ALTERNATIVE.
This is _already_ filed as


Please comment there and help to get it fixed.

Nack on the patch as it won't go upstream like this in the linux kernel.


More information about the LLVMLinux mailing list