Hi,
There is at least one assembler that supports ‘setssbsy' but not “endbr*”.
We can catch this by adding "-fcf-protection” to the check_effective_target_cet
test.
OK for trunk?
Iain
gcc/testsuite/
*lib/target-supports.exp (check_effective_target_cet): Add the
fcf-protection flag to tet CET test.
diff --git a/gcc/testsuite/lib/target-supports.exp
b/gcc/testsuite/lib/target-supports.exp
index da132369a4..b7c6bb67ce 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9212,7 +9212,7 @@ proc check_effective_target_cet { } {
{
asm ("setssbsy");
}
- } "-O2" ]
+ } "-O2 -fcf-protection" ]
}
# Return 1 if target supports floating point "infinite"
--
2.17.1