Add missing macros when the auxiliary triple points to the PPC architecture.
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 22108 Build 22108: arc lint + arc unit
Event Timeline
Comment Actions
Please also update the test.
lib/Frontend/InitPreprocessor.cpp | ||
---|---|---|
1115–1133 | I'd suggest to merge these two: case llvm::Triple::ppc64: case llvm::Triple::ppc64le: Builder.defineMacro("__powerpc64__"); StringRef ABI = AuxTI.getABI(); // Set _CALL_ELF macro needed for gnu/stubs.h if (ABI == "elfv1" || ABI == "elfv1-qpx") Builder.defineMacro("_CALL_ELF", "1"); if (ABI == "elfv2") Builder.defineMacro("_CALL_ELF", "2"); // TODO: Add comment where this is needed and for what reason. if (AuxTI.getLongDoubleWidth() == 128) { Builder.defineMacro("__LONG_DOUBLE_128__"); Builder.defineMacro("__LONGDOUBLE128"); } break; |
I'd suggest to merge these two: