+2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ PR gdb/18644:
+ * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
+ 16-byte floats.
+ * i386-tdep.c (i386_floatformat_for_type): Use
+ floatformats_ia64_quad for the 16-byte floating point component
+ within a fortran 32-byte complex number.
+
2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
* dwarf2read.c (struct cu_partial_die_info): Add constructor,
builtin_f_type->builtin_real_s8
= arch_float_type (gdbarch, gdbarch_double_bit (gdbarch),
"real*8", gdbarch_double_format (gdbarch));
+ auto fmt = gdbarch_floatformat_for_type (gdbarch, "real(kind=16)", 128);
builtin_f_type->builtin_real_s16
- = arch_float_type (gdbarch, gdbarch_long_double_bit (gdbarch),
- "real*16", gdbarch_long_double_format (gdbarch));
+ = arch_float_type (gdbarch, 128, "real*16", fmt);
builtin_f_type->builtin_complex_s8
= arch_complex_type (gdbarch, "complex*8",
if (len == 128 && name)
if (strcmp (name, "__float128") == 0
|| strcmp (name, "_Float128") == 0
- || strcmp (name, "complex _Float128") == 0)
+ || strcmp (name, "complex _Float128") == 0
+ || strcmp (name, "complex(kind=16)") == 0
+ || strcmp (name, "real(kind=16)") == 0)
return floatformats_ia64_quad;
return default_floatformat_for_type (gdbarch, name, len);
+2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ PR gdb/18644
+ * gdb.fortran/complex.exp: Remove setup_kfail calls.
+ * gdb.fortran/printing-types.exp: Add new test.
+ * gdb.fortran/printing-types.f90: Add 16-byte real variable for
+ testing.
+ * gdb.fortran/type-kinds.exp (test_cast_1_to_type_kind): Remove
+ setup_kfail call.
+
2019-05-17 Alan Hayward <alan.hayward@arm.com>
* README (Running the Testsuite): Change example.
gdb_test "print c8" " = \\(321,-22\\)"
gdb_test "print dc" " = \\(321,-22\\)"
-setup_kfail gdb/18644 "*-*-*"
gdb_test "print c16" " = \\(-874,19\\)"
gdb_test "whatis c" "type = complex\\(kind=4\\)"
gdb_test "whatis \$" " = real\\*8"
gdb_test "whatis c16" "type = complex\\(kind=16\\)"
-setup_kfail gdb/18644 "*-*-*"
gdb_test "print \$_creal (c16)" " = -874"
gdb_test "whatis \$" " = real\\*16"
gdb_test "print twobytes" " = 2"
gdb_test "print chvalue" " = \'a\'"
gdb_test "print logvalue" " = \.TRUE\."
+gdb_test "print rVal" " = 2000"
integer(2) :: twoBytes
character :: chValue
logical(1) :: logValue
+ real(kind=16) :: rVal
oneByte = 1
twoBytes = 2
chValue = 'a'
logValue = .true.
+ rVal = 2000
write(*,*) s
end
proc test_cast_1_to_type_kind {base_type type_kind cast_result size_result} {
set type_string "$base_type (kind=$type_kind)"
gdb_test "p (($type_string) 1)" " = $cast_result"
-
- if {($base_type == "real" || $base_type == "complex")
- && $type_kind == 16} {
- setup_kfail gdb/18644 "*-*-*"
- }
-
gdb_test "p sizeof (($type_string) 1)" " = $size_result"
}