[gdb/testsuite] Skip gdb.fortran/namelist.exp for gfortran 4.8
authorTom de Vries <tdevries@suse.de>
Mon, 27 Jun 2022 10:47:26 +0000 (12:47 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 27 Jun 2022 10:47:26 +0000 (12:47 +0200)
commit2043638bf9e8b7ea31b4cbf2c6f7299a3c27efb5
tree1a46216c4cc8ae26767ab45bbf1da9971c65f6f6
parent65067f1c2c842f001017638c4fe53613d6656263
[gdb/testsuite] Skip gdb.fortran/namelist.exp for gfortran 4.8

The test-case gdb.fortran/namelist.exp uses a gfortran feature (emitting
DW_TAG_namelist in the debug info) that has been supported since gfortran 4.9,
see PR gcc/37132.

Skip the test for gfortran 4.8 and earlier.  Do this using gcc_major_version,
and update it to be able to handle "gcc_major_version {gfortran-*} f90".

Tested on x86_64-linux, with gfortran 4.8.5, 7.5.0, and 12.1.1.
gdb/testsuite/gdb.fortran/namelist.exp
gdb/testsuite/lib/gdb.exp