]> granicus.if.org Git - clang/commitdiff
Start reserving x18 by default on Android targets.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 29 Aug 2018 01:38:47 +0000 (01:38 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 29 Aug 2018 01:38:47 +0000 (01:38 +0000)
Differential Revision: https://reviews.llvm.org/D45588

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340889 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/sanitizer-ld.c

index 483c87a6242f0b7481121312f88379d72823c1d6..ca16932f07397b487190478de31942bcd68f7579 100644 (file)
 // RUN: %clang -fsanitize=shadow-call-stack %s -### -o %t.o 2>&1 \
 // RUN:     -target arm64-unknown-ios -fuse-ld=ld \
 // RUN:   | FileCheck --check-prefix=CHECK-SHADOWCALLSTACK-LINUX-AARCH64-X18 %s
+// RUN: %clang -fsanitize=shadow-call-stack %s -### -o %t.o 2>&1 \
+// RUN:     -target aarch64-unknown-linux-android -fuse-ld=ld \
+// RUN:   | FileCheck --check-prefix=CHECK-SHADOWCALLSTACK-LINUX-AARCH64-X18 %s
 // CHECK-SHADOWCALLSTACK-LINUX-AARCH64-X18-NOT: error:
 
 // RUN: %clang -fsanitize=shadow-call-stack %s -### -o %t.o 2>&1 \