[clang] bcae3a7 - [PS4] Predefine the __SCE__ macro for the x86_64-scei-ps4 triple
Warren Ristow via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 12 11:06:32 PST 2019
Author: Warren Ristow
Date: 2019-12-12T11:00:09-08:00
New Revision: bcae3a77afd171604d117393d8cb92dfca2da8bb
URL: https://github.com/llvm/llvm-project/commit/bcae3a77afd171604d117393d8cb92dfca2da8bb
DIFF: https://github.com/llvm/llvm-project/commit/bcae3a77afd171604d117393d8cb92dfca2da8bb.diff
LOG: [PS4] Predefine the __SCE__ macro for the x86_64-scei-ps4 triple
Added:
Modified:
clang/lib/Basic/Targets/OSTargets.h
clang/test/Preprocessor/init.c
Removed:
################################################################################
diff --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTargets.h
index 756cb7a8bbe3..70fac030bc5d 100644
--- a/clang/lib/Basic/Targets/OSTargets.h
+++ b/clang/lib/Basic/Targets/OSTargets.h
@@ -538,6 +538,7 @@ class LLVM_LIBRARY_VISIBILITY PS4OSTargetInfo : public OSTargetInfo<Target> {
Builder.defineMacro("__KPRINTF_ATTRIBUTE__");
DefineStd(Builder, "unix", Opts);
Builder.defineMacro("__ELF__");
+ Builder.defineMacro("__SCE__");
Builder.defineMacro("__ORBIS__");
}
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index cf0f428d38bb..9b116dda0ace 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -9599,6 +9599,7 @@
// PS4:#define __PTRDIFF_TYPE__ long int
// PS4:#define __PTRDIFF_WIDTH__ 64
// PS4:#define __REGISTER_PREFIX__
+// PS4:#define __SCE__ 1
// PS4:#define __SCHAR_MAX__ 127
// PS4:#define __SHRT_MAX__ 32767
// PS4:#define __SIG_ATOMIC_MAX__ 2147483647
More information about the cfe-commits
mailing list