Work around GCC 6.3.1 bug
[deliverable/binutils-gdb.git] / gdb / avr-tdep.c
index 6818f334e7528a2720965fee83b741b5a9f47d29..9aca8c32e5e7606bb704b32a59838d31d3970605 100644 (file)
@@ -1460,7 +1460,8 @@ avr_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
   /* Create a type for PC.  We can't use builtin types here, as they may not
      be defined.  */
-  tdep->void_type = arch_type (gdbarch, TYPE_CODE_VOID, 1, "void");
+  tdep->void_type = arch_type (gdbarch, TYPE_CODE_VOID, TARGET_CHAR_BIT,
+                              "void");
   tdep->func_void_type = make_function_type (tdep->void_type, NULL);
   tdep->pc_type = arch_pointer_type (gdbarch, 4 * TARGET_CHAR_BIT, NULL,
                                     tdep->func_void_type);
This page took 0.025952 seconds and 4 git commands to generate.