+2020-03-04 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
+
+ * lib/fortran.exp (fortran_int4): Handle flang kind printing.
+ (fortran_int8): Likewise.
+ (fortran_real4): Likewise.
+ (fortran_real8): Likewise.
+ (fortran_complex4): Likewise.
+ (fortran_logical4): Likewise.
+ (fortran_character1): Likewise.
+
2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.fortran/logical.exp: Add tests that any non-zero value is
proc fortran_int4 {} {
if {[test_compiler_info {gcc-4-[012]-*}]} {
return "int4"
- } elseif {[test_compiler_info {gcc-*}]
- || [test_compiler_info {clang-*}]} {
+ } elseif {[test_compiler_info {gcc-*}]} {
return "integer\\(kind=4\\)"
+ } elseif {[test_compiler_info {clang-*}]} {
+ return "integer"
} elseif {[test_compiler_info {icc-*}]} {
return "INTEGER\\(4\\)"
} else {
proc fortran_int8 {} {
if {[test_compiler_info {gcc-4-[012]-*}]} {
return "int8"
- } elseif {[test_compiler_info {gcc-*}]
- || [test_compiler_info {clang-*}]} {
+ } elseif {[test_compiler_info {gcc-*}]} {
return "integer\\(kind=8\\)"
+ } elseif {[test_compiler_info {clang-*}]} {
+ return "integer*8"
} elseif {[test_compiler_info {icc-*}]} {
return "INTEGER\\(8\\)"
} else {
proc fortran_real4 {} {
if {[test_compiler_info {gcc-4-[012]-*}]} {
return "real4"
- } elseif {[test_compiler_info {gcc-*}]
- || [test_compiler_info {clang-*}]} {
+ } elseif {[test_compiler_info {gcc-*}]} {
return "real\\(kind=4\\)"
+ } elseif {[test_compiler_info {clang-*}]} {
+ return "real"
} elseif {[test_compiler_info {icc-*}]} {
return "REAL\\(4\\)"
} else {
proc fortran_real8 {} {
if {[test_compiler_info {gcc-4-[012]-*}]} {
return "real8"
- } elseif {[test_compiler_info {gcc-*}]
- || [test_compiler_info {clang-*}]} {
+ } elseif {[test_compiler_info {gcc-*}]} {
return "real\\(kind=8\\)"
+ } elseif {[test_compiler_info {clang-*}]} {
+ return "double precision"
} elseif {[test_compiler_info {icc-*}]} {
return "REAL\\(8\\)"
} else {
proc fortran_complex4 {} {
if {[test_compiler_info {gcc-4-[012]-*}]} {
return "complex4"
- } elseif {[test_compiler_info {gcc-*}]
- || [test_compiler_info {clang-*}]} {
+ } elseif {[test_compiler_info {gcc-*}]} {
return "complex\\(kind=4\\)"
+ } elseif {[test_compiler_info {clang-*}]} {
+ return "complex"
} elseif {[test_compiler_info {icc-*}]} {
return "COMPLEX\\(4\\)"
} else {
proc fortran_logical4 {} {
if {[test_compiler_info {gcc-4-[012]-*}]} {
return "logical4"
- } elseif {[test_compiler_info {gcc-*}]
- || [test_compiler_info {clang-*}]} {
+ } elseif {[test_compiler_info {gcc-*}]} {
return "logical\\(kind=4\\)"
+ } elseif {[test_compiler_info {clang-*}]} {
+ return "logical"
} elseif {[test_compiler_info {icc-*}]} {
return "LOGICAL\\(4\\)"
} else {
proc fortran_character1 {} {
if {[test_compiler_info {gcc-4-[012]-*}]} {
return "character1"
- } elseif {[test_compiler_info {gcc-*}]
- || [test_compiler_info {clang-*}]} {
+ } elseif {[test_compiler_info {gcc-*}]} {
return "character\\(kind=1\\)"
+ } elseif {[test_compiler_info {clang-*}]} {
+ return "character"
} elseif {[test_compiler_info {icc-*}]} {
return "CHARACTER\\(1\\)"
} else {