[binfo] More binfo reworking

Mark Mitchell mark@codesourcery.com
Wed Jul 7 03:01:00 GMT 2004


Nathan Sidwell wrote:

> Mark,
> I had hoped that I wouldn't need another patch before actually
> extracting binfos. Alas, that was not to be.  I got confused by
> the BINFO_foo and TYPE_BINFO_foo macros -- we do not use them 
> consistently
> in the c++ frontend, and they themselves claim to get base *types*, when
> infact they get base *binfos* (the TYPE_BINFO_BASETYPE macro does get
> you a type, which is different to the other TYPE_BINFO_foo macros, which
> merely get to a types' binfo).  I decided to remove all the TYPE_BINFO
> macros and just rely on the BINFO ones.  In addition I renamed those
> accessing a base binfo to indicate so in their name (BINFO_BASE_BINFO
> for instance).
>
> With this change in place I'm much less likely to get binfo/type 
> confusion
> at the next step.
>
> booted and tested on i686-pc-linux gnu, ok?

OK.

-- 
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com



More information about the Gcc-patches mailing list