testsuite - improve check_effective_target_cet.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 16 May 2019 08:36:05 +0000 (08:36 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 16 May 2019 08:36:05 +0000 (08:36 +0000)
commitd695ae2130d1f28c529dc88f40ebeee27df69730
tree720934147f51c677d8b5ba7b674cacb0679169d8
parent5486a99614790b4b310fedb774f086222490b2c0
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
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp