[gdb/testsuite] Require -fsplit-stack in gdb.base/morestack.exp
commit491b4c189a4135edf2a4e580a0433af12a71fba5
authorTom de Vries <tdevries@suse.de>
Tue, 21 Feb 2023 13:41:14 +0000 (21 14:41 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 21 Feb 2023 13:41:14 +0000 (21 14:41 +0100)
tree523cb149fc35c5e38da3992c7e7ca75a6525948e
parentb3060b05134f47f6c6aba72f31746822343252ac
[gdb/testsuite] Require -fsplit-stack in gdb.base/morestack.exp

On aarch64-linux, I run into:
...
gdb compile failed, cc1: error: '-fsplit-stack' is not supported by this \
  compiler configuration
UNTESTED: gdb.base/morestack.exp: failed to prepare
...

Fix this by requiring -fsplit-stack, such that we have instead:
...
UNSUPPORTED: gdb.base/morestack.exp: require failed: \
  expr [have_compile_flag -fsplit-stack]
...

Tested on x86_64-linux and aarch64-linux.
gdb/testsuite/gdb.base/morestack.exp
gdb/testsuite/lib/gdb.exp