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: [C++ PATCH] Stage 2: Implement access check for template instantiation (2/n)


Paolo Bonzini <paolo.bonzini@lu.unisi.ch> writes:

| > The TREE_CHAIN field is common to all tree nodes.  All sort of
| > tree nodes such as *_DECL, *_STMT, etc. use this, not just TREE_LIST
| > and ACCESS.
| 
| The idea is to make TREE_CHAIN disappear sooner or later.  Not all
| nodes need it.  See for example the way PHI_CHAIN is defined and used.

I agree.  Even though ACCESS_CHAIN will be mapped, at the moment, to
TREE_CHAIN, it makes the most sense to have it.  It improves
readability and abstraction -- instead of reducing it.

-- Gaby


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