diff --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTargets.h --- a/clang/lib/Basic/Targets/OSTargets.h +++ b/clang/lib/Basic/Targets/OSTargets.h @@ -388,6 +388,8 @@ } else { Builder.defineMacro("__gnu_linux__"); } + if (Triple.isSPARC()) + Builder.defineMacro("__NO_INLINE__"); if (Opts.POSIXThreads) Builder.defineMacro("_REENTRANT"); if (Opts.CPlusPlus)