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: unassignedclangb...@nondot.org
Reporter: ndesaulni...@google.com
CC: kit.bar...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk,
srhi...@google.com
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/87czzlu7n4....@mpe.ellerman.id.au/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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs