diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-05-16 08:36:05 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-05-16 08:36:05 +0000 |
commit | d695ae2130d1f28c529dc88f40ebeee27df69730 (patch) | |
tree | 720934147f51c677d8b5ba7b674cacb0679169d8 /gcc/testsuite/lib | |
parent | 5486a99614790b4b310fedb774f086222490b2c0 (diff) | |
download | gcc-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.exp | 2 |
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" |