https://bugs.llvm.org/show_bug.cgi?id=48427
Bug ID: 48427
Summary: [powerpc] -m32 should not define __powerpc64__
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Blocks: 4068
For building the Linux kernel with Clang, particularly the 32b compat VDSO for
powerpc64, we build one image file using `--target=powerpc64le-linux-gnu -m32`.
It looks like in this case Clang's preprocessor #defines __powerpc64__. This
causes compatibility issues for building this code with Clang (as GCC does not
define this for -m32).
See also:
https://lore.kernel.org/linuxppc-dev/[email protected]/T/
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs