diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1998-01-28 09:07:23 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1998-01-28 09:07:23 -0800 |
commit | 598fc152608335ec98ce3d6553af67d5b68a9f52 (patch) | |
tree | 8b2fdd61b5b3fb2a8ec14bf16e3154a0ae205602 /gcc/dbxout.c | |
parent | a88b65c26035fa59f18c1e339d53668241d72fa6 (diff) | |
download | gcc-598fc152608335ec98ce3d6553af67d5b68a9f52.zip gcc-598fc152608335ec98ce3d6553af67d5b68a9f52.tar.gz gcc-598fc152608335ec98ce3d6553af67d5b68a9f52.tar.bz2 |
dbxout.c (dbxout_type): For a RECORD_TYPE...
�
* 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
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index fcb5d86..a1d828f 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -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 |