summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/init.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-03-25 03:33:59 +0000
committerEric Christopher <echristo@gmail.com>2017-03-25 03:33:59 +0000
commit2fd2eda0ace62968bc2eadf6260cebbbcd8d7bf5 (patch)
treee02f349062c6a2ec8b7d1b7104c222ec57164ea3 /clang/test/Preprocessor/init.c
parentb73d43521f5b2e9bda3baf6c67c614745f50d443 (diff)
downloadbcm5719-llvm-2fd2eda0ace62968bc2eadf6260cebbbcd8d7bf5.tar.gz
bcm5719-llvm-2fd2eda0ace62968bc2eadf6260cebbbcd8d7bf5.zip
Add the _CALL_LINUX preprocessor define for ppc linux platforms.
This typically is only for a new enough linker (bfd >= 2.16.2 or gold), but our ppc suppport post-dates this and it should work on all linux platforms. It is guaranteed to work on all elfv2 platforms. llvm-svn: 298765
Diffstat (limited to 'clang/test/Preprocessor/init.c')
-rw-r--r--clang/test/Preprocessor/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index bd25334a68c..3fc5907e4d3 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -6144,6 +6144,7 @@
// PPC64-LINUX:#define _ARCH_PPC 1
// PPC64-LINUX:#define _ARCH_PPC64 1
// PPC64-LINUX:#define _BIG_ENDIAN 1
+// PPC64-LINUX:#define _CALL_LINUX 1
// PPC64-LINUX:#define _LP64 1
// PPC64-LINUX:#define __BIGGEST_ALIGNMENT__ 16
// PPC64-LINUX:#define __BIG_ENDIAN__ 1
@@ -6346,6 +6347,11 @@
// PPC64-ELFv1:#define _CALL_ELF 1
// PPC64-ELFv2:#define _CALL_ELF 2
//
+// Most of this is encompassed in other places.
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64le-unknown-linux-gnu -target-abi elfv2 < /dev/null | FileCheck -match-full-lines -check-prefix PPC64LE-LINUX %s
+//
+// PPC64LE-LINUX:#define _CALL_LINUX 1
+//
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-none-none -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC %s
//
// PPC:#define _ARCH_PPC 1
OpenPOWER on IntegriCloud