This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Commence binfo extraction


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 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]