aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-05-16 08:36:05 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-05-16 08:36:05 +0000
commitd695ae2130d1f28c529dc88f40ebeee27df69730 (patch)
tree720934147f51c677d8b5ba7b674cacb0679169d8 /gcc/testsuite/lib
parent5486a99614790b4b310fedb774f086222490b2c0 (diff)
downloadgcc-d695ae2130d1f28c529dc88f40ebeee27df69730.zip
gcc-d695ae2130d1f28c529dc88f40ebeee27df69730.tar.gz
gcc-d695ae2130d1f28c529dc88f40ebeee27df69730.tar.bz2
testsuite - improve check_effective_target_cet.
In some cases the test using setssbsy was not enough to detemine support for the CET insns. Adding -fcf-protection explicitly causes other insns to be emitted (e.g. endbr32/64) which are a more complete check. 2019-05-16 Iain Sandoe <iain@sandoe.co.uk> * lib/target-supports.exp (check_effective_target_cet): Add the -fcf-protection flag to the build conditions. From-SVN: r271282
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/target-supports.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 324a9fe..63bc2cc 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9225,7 +9225,7 @@ proc check_effective_target_cet { } {
{
asm ("setssbsy");
}
- } "-O2" ]
+ } "-O2 -fcf-protection" ]
}
# Return 1 if target supports floating point "infinite"