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: [binfo] More binfo reworking


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


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