fortran: Testsuite, fix different type naming across compilers.
authorBernhard Heckel <bernhard.heckel@intel.com>
Thu, 7 Apr 2016 08:28:14 +0000 (10:28 +0200)
committerBernhard Heckel <bernhard.heckel@intel.com>
Mon, 18 Apr 2016 12:04:07 +0000 (14:04 +0200)
commit0c13f7e559afe5f973a59311b0e401296c48d96c
tree4fc302505cf6e4d513b87b24e6ba272141ba4802
parent9b9b09e9020aa32ade1a86461804a1950d967abb
fortran: Testsuite, fix different type naming across compilers.

Gfortran and ifort have different names for data types.  Encapsulate
type names in a library to increase number of supported compilers.
gfortran -4.2 : int4
gfortran>=4.3 : integer(kind=4)
ifort         : INTEGER(4)

2016-04-18  Bernhard Heckel  <bernhard.heckel@intel.com>

gdb/testsuite/Changelog:
* gdb.fortran/common-block.exp: Use type naming defined in lib fortran.
* gdb.fortran/derived-type.exp: Use type naming defined in lib fortran.
* gdb.fortran/multi-dim.exp: Use type naming defined in lib fortran.
* gdb.fortran/vla-datatypes.exp: Use type naming defined in lib fortran.
* gdb.fortran/vla-ptype-sub.exp: Use type naming defined in lib fortran.
* gdb.fortran/vla-ptype.exp: Use type naming defined in lib fortran.
* gdb.fortran/whatis_type.exp: Use type naming defined in lib fortran.
* lib/fortran.exp (fortran_int4): New procedure.
(fortran_real4, fortran_real8, fortran_complex4): Likewise.
(fortran_logical4): Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/common-block.exp
gdb/testsuite/gdb.fortran/derived-type.exp
gdb/testsuite/gdb.fortran/multi-dim.exp
gdb/testsuite/gdb.fortran/vla-datatypes.exp
gdb/testsuite/gdb.fortran/vla-ptype-sub.exp
gdb/testsuite/gdb.fortran/vla-ptype.exp
gdb/testsuite/gdb.fortran/whatis_type.exp
gdb/testsuite/lib/fortran.exp