summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/x86-cf-protection.c
diff options
context:
space:
mode:
authorOren Ben Simhon <oren.ben.simhon@intel.com>2018-03-17 13:31:35 +0000
committerOren Ben Simhon <oren.ben.simhon@intel.com>2018-03-17 13:31:35 +0000
commit220671a0806426051a5b565cd525bce56dc2d142 (patch)
tree12c7cf206645be6194b6185a218c42d53675be14 /clang/test/CodeGen/x86-cf-protection.c
parentfdd72fd5225dedb4431473fb3ac7b3d45fc8ed00 (diff)
downloadbcm5719-llvm-220671a0806426051a5b565cd525bce56dc2d142.tar.gz
bcm5719-llvm-220671a0806426051a5b565cd525bce56dc2d142.zip
Adding nocf_check attribute for cf-protection fine tuning
The patch adds nocf_check target independent attribute for disabling checks that were enabled by cf-protection flag. The attribute can be appertained to functions and function pointers. Attribute name follows GCC's similar attribute name. Differential Revision: https://reviews.llvm.org/D41880 llvm-svn: 327768
Diffstat (limited to 'clang/test/CodeGen/x86-cf-protection.c')
-rw-r--r--clang/test/CodeGen/x86-cf-protection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/x86-cf-protection.c b/clang/test/CodeGen/x86-cf-protection.c
index c853791d2dd..044f839c348 100644
--- a/clang/test/CodeGen/x86-cf-protection.c
+++ b/clang/test/CodeGen/x86-cf-protection.c
@@ -1,5 +1,5 @@
-// RUN: not %clang_cc1 -fsyntax-only -S -emit-llvm -o %t -triple i386-unknown-unknown -fcf-protection=return %s 2>&1 | FileCheck %s --check-prefix=RETURN
-// RUN: not %clang_cc1 -fsyntax-only -S -emit-llvm -o %t -triple i386-unknown-unknown -fcf-protection=branch %s 2>&1 | FileCheck %s --check-prefix=BRANCH
+// RUN: not %clang_cc1 -fsyntax-only -S -o %t -triple i386-unknown-unknown -fcf-protection=return %s 2>&1 | FileCheck %s --check-prefix=RETURN
+// RUN: not %clang_cc1 -fsyntax-only -S -o %t -triple i386-unknown-unknown -fcf-protection=branch %s 2>&1 | FileCheck %s --check-prefix=BRANCH
// RETURN: error: option 'cf-protection=return' cannot be specified without '-mshstk'
// BRANCH: error: option 'cf-protection=branch' cannot be specified without '-mibt'
OpenPOWER on IntegriCloud