dbxout.c (dbxout_type): For a RECORD_TYPE...
authorPer Bothner <bothner@gcc.gnu.org>
Wed, 28 Jan 1998 17:07:23 +0000 (09:07 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 28 Jan 1998 17:07:23 +0000 (09:07 -0800)

* dbxout.c (dbxout_type):  For a RECORD_TYPE, check that TYPE_BINFO
is a TREE_VEC before trying to use it for baseclasses.
(Chill uses the same field for a different purpose.)

From-SVN: r17534

gcc/dbxout.c

index fcb5d86650ea0aa223a070470ee8820581a1648e..a1d828f9f238a3222a58a221305a43662e9ce63b 100644 (file)
@@ -1270,7 +1270,9 @@ dbxout_type (type, full, show_arg_types)
       {
        int i, n_baseclasses = 0;
 
-       if (TYPE_BINFO (type) != 0 && TYPE_BINFO_BASETYPES (type) != 0)
+       if (TYPE_BINFO (type) != 0
+           && TREE_CODE (TYPE_BINFO (type)) == TREE_VEC
+           && TYPE_BINFO_BASETYPES (type) != 0)
          n_baseclasses = TREE_VEC_LENGTH (TYPE_BINFO_BASETYPES (type));
 
        /* Output a structure type.  We must use the same test here as we