re PR debug/11473 (ICE with -gstabs when empty struct inheits from an empty struct)
[gcc.git] / gcc / dbxout.c
index 0fb46a924f34bacd49c568588949a5750e5dab1e..770b0be14c112a5ece50ff172e943a89111ee710 100644 (file)
@@ -562,7 +562,7 @@ dbxout_typedefs (tree syms)
 }
 
 #ifdef DBX_USE_BINCL
-/* Emit BINCL stab using given name.   */
+/* Emit BINCL stab using given name.  */
 static void
 emit_bincl_stab (const char *name)
 {
@@ -1756,9 +1756,7 @@ dbxout_type (tree type, int full)
                                * BITS_PER_UNIT);
                putc (',', asmfile);
                CHARS (1);
-               print_wide_int (tree_low_cst (DECL_SIZE
-                                             (TYPE_NAME
-                                              (BINFO_TYPE (child))),
+               print_wide_int (tree_low_cst (TYPE_SIZE (BINFO_TYPE (child)),
                                              0)
                                * BITS_PER_UNIT);
                putc (';', asmfile);