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 | |
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')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dc4edef..2c5f638 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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. + 2019-05-16 Jun Ma <JunMa@linux.alibaba.com> PR tree-optimization/90106 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" |