[gdb/testsuite] Require gcc >= 5 in gdb.linespec/cpls-abi-tag.exp
authorTom de Vries <tdevries@suse.de>
Tue, 29 Aug 2023 15:27:19 +0000 (17:27 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 29 Aug 2023 15:27:19 +0000 (17:27 +0200)
commit8370a35d4b82da51bfc96f6bb5f6e8227d8b6fea
tree9c9f3777e2feb2b59d236cb49bd30d43de4a40c3
parent62b28bd6688c933b9ffa56f53be1f827450625a7
[gdb/testsuite] Require gcc >= 5 in gdb.linespec/cpls-abi-tag.exp

When running test-case gdb.linespec/cpls-abi-tag.exp with gcc 4.8.4, we run
into:
...
cpls-abi-tag.cc:71:26: error: ‘abi_tag’ attribute applied to non-function ‘s’
 ABI3 test_abi_tag_struct s;
                          ^
...

The test-case is supported starting gcc 5.

Fix this by requiring gcc >= 5, if a gcc compiler is used.

Tested on x86_64-linux.
gdb/testsuite/gdb.linespec/cpls-abi-tag.exp