]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213]
authorMarek Polacek <polacek@redhat.com>
Tue, 11 Oct 2022 16:51:40 +0000 (12:51 -0400)
committerMarek Polacek <polacek@redhat.com>
Tue, 18 Oct 2022 17:40:29 +0000 (13:40 -0400)
commitcc694f45087c892e69ebbb177203c708f00b1bc7
tree15fbe6fefbb1d9bf27caccdb8a798152646aad90
parent885b6660c17fb91980b5682514ef54668e544b02
testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213]

This test fails on non-i?86/x86_64 targets because on those targets
we get

  error: '-fcf-protection=full' is not supported for this target

so this patch limits where the test is run.

PR testsuite/107213

gcc/testsuite/ChangeLog:

* c-c++-common/pointer-to-fn1.c: Only run on i?86/x86_64.
gcc/testsuite/c-c++-common/pointer-to-fn1.c