This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Commence binfo extraction
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Michael Elizabeth Chastain <mec dot gnu at mindspring dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 06 Jul 2004 10:20:10 +0100
- Subject: Re: [PATCH]: Commence binfo extraction
- Organization: Codesourcery LLC
- References: <20040706073534.5508A4B104@berman.michael-chastain.com>
Michael,
This patch should fix the problem. there's no need to test the tree code
at all, only a binfo can appear there for those types.
installed as obvious.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
* dbxout.c (dbxout_type): Don't test whether the binfo slot of
RECORD, UNION & QUAL_UNION is actually a binfo.
Index: dbxout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dbxout.c,v
retrieving revision 1.188
diff -c -3 -p -r1.188 dbxout.c
*** dbxout.c 6 Jul 2004 08:51:10 -0000 1.188
--- dbxout.c 6 Jul 2004 08:53:25 -0000
*************** dbxout_type (tree type, int full)
*** 1636,1642 ****
int i, n_baseclasses = 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));
--- 1636,1641 ----