[gdb/testsuite] Fix gdb.reverse/step-indirect-call-thunk.exp with -fcf-protection
authorTom de Vries <tdevries@suse.de>
Fri, 30 Dec 2022 15:48:07 +0000 (16:48 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 30 Dec 2022 15:48:07 +0000 (16:48 +0100)
commitd6246a8730fad9edcb972c1f689a13bb16640483
treef427572b5e45d7f7f92654419ec0bba96005d930
parentb1b0f69cb4a2ccd421419f9703edfcc5c3032dc0
[gdb/testsuite] Fix gdb.reverse/step-indirect-call-thunk.exp with -fcf-protection

On Ubuntu 22.04.1 x86_64, I run into:
...
gdb.reverse/step-indirect-call-thunk.c: In function 'inc':^M
gdb.reverse/step-indirect-call-thunk.c:22:1: error: '-mindirect-branch' and \
  '-fcf-protection' are not compatible^M
   22 | {                /* inc.1 */^M
      | ^^M
...

Fix this by forcing -fcf-protection=none, if supported.

Tested on x86_64-linux.
gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp