[all-commits] [llvm/llvm-project] 987b49: [PPC] Undefine __ppc64__ to match GCC
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Nov 22 17:01:51 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 987b49395c604c794bee4439af4d3a47b4b58276
https://github.com/llvm/llvm-project/commit/987b49395c604c794bee4439af4d3a47b4b58276
Author: Fangrui Song <i at maskray.me>
Date: 2022-11-22 (Tue, 22 Nov 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Basic/Targets/PPC.cpp
M clang/test/Preprocessor/init-ppc64.c
Log Message:
-----------
[PPC] Undefine __ppc64__ to match GCC
GCC only defines `__ppc64__` for darwin while the darwin support has been
removed from llvm-project. The existence of `__ppc64__` makes some software
think we are compiling for big-endian PowerPC Mac; also it lures users to write
code which is not portable to GCC.
It is straightforward if a distro wants to keep the macro: add
`-D__ppc64__=1` to a Clang configuration file.
Reviewed By: thesamesam, nemanjai
Differential Revision: https://reviews.llvm.org/D137511
More information about the All-commits
mailing list