gdb/fortran: Use TYPE_CODE_CHAR for character types
[deliverable/binutils-gdb.git] / gdb / f-lang.c
index f27eb0d45da1bf7a890d8b369774d1eb22170431..c329d602e24348189f0737373222fbf626ffe778 100644 (file)
@@ -366,7 +366,7 @@ build_fortran_types (struct gdbarch *gdbarch)
     = arch_type (gdbarch, TYPE_CODE_VOID, TARGET_CHAR_BIT, "VOID");
 
   builtin_f_type->builtin_character
-    = arch_integer_type (gdbarch, TARGET_CHAR_BIT, 0, "character");
+    = arch_type (gdbarch, TYPE_CODE_CHAR, TARGET_CHAR_BIT, "character");
 
   builtin_f_type->builtin_logical_s1
     = arch_boolean_type (gdbarch, TARGET_CHAR_BIT, 1, "logical*1");
This page took 0.041244 seconds and 4 git commands to generate.