[gdb/testsuite] Require compilation flags in two gdb.arch/aarch64 test-cases
authorTom de Vries <tdevries@suse.de>
Tue, 21 Feb 2023 14:26:24 +0000 (15:26 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 21 Feb 2023 14:26:24 +0000 (15:26 +0100)
commitf8ab28d773dbf37d6e8ab4318ff0042dd742e9b8
tree6c7750e0b47cc39174f56aee6c9752163165a132
parent2ef339e38f51906a394105fe545058fec1f9bc4a
[gdb/testsuite] Require compilation flags in two gdb.arch/aarch64 test-cases

With test-cases gdb.arch/aarch64-mte-core.exp and gdb.arch/aarch64-pauth.exp I
run into compilation errors due to unsupported compilation flags.

Fix this by requiring the compilation flags, such that I have instead:
...
UNSUPPORTED: gdb.arch/aarch64-mte-core.exp: require failed: \
  have_compile_flag -march=armv8.5-a+memtag
UNSUPPORTED: gdb.arch/aarch64-pauth.exp: require failed: \
  have_compile_flag -mbranch-protection=pac-ret+leaf
...

Tested on aarch64-linux.
gdb/testsuite/gdb.arch/aarch64-mte-core.exp
gdb/testsuite/gdb.arch/aarch64-pauth.exp