summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-03-25 05:40:13 +0000
committerEric Christopher <echristo@gmail.com>2017-03-25 05:40:13 +0000
commit0d3611639434aa0a674ec54548727ee0a83ebee7 (patch)
tree4e4e101678a3fd51bd2ea42bd77c1826daaa2f67 /clang/lib/Basic/Targets.cpp
parentcf0e5e1c62f05e4f891026ed091495a5f73cd9b3 (diff)
downloadbcm5719-llvm-0d3611639434aa0a674ec54548727ee0a83ebee7.tar.gz
bcm5719-llvm-0d3611639434aa0a674ec54548727ee0a83ebee7.zip
Define __HAVE_BSWAP__ on ppc to match gcc since we support both builtins as well.
llvm-svn: 298769
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 1971042fc87..e2db335cb3a 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -1395,6 +1395,9 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
if (PointerWidth == 64)
Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8");
+ // We have support for the bswap intrinsics so we can define this.
+ Builder.defineMacro("__HAVE_BSWAP__", "1");
+
// FIXME: The following are not yet generated here by Clang, but are
// generated by GCC:
//
@@ -1407,7 +1410,6 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
// __RSQRTEF__
// _SOFT_DOUBLE_
// __NO_LWSYNC__
- // __HAVE_BSWAP__
// __LONGDOUBLE128
// __CMODEL_MEDIUM__
// __CMODEL_LARGE__
OpenPOWER on IntegriCloud