This is the mail archive of the gcc@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]

C++: Why do we nreverse CLASSTYPE_TAGS


Hi,

  While working for a conservative solution (i.e. minimal patch) for
reducing excessive compile-time in GCC-3.3/cc1plus, I noted that we
are nreverse()ing the list of class-types or enums declared at a
class-scope in cp/class.c:unreverse_member_declarations().

As far as I can see, reversing the CLASSTYPE_TAGS is not necessary
since the whole purpose of CLASSTYPE_TAGS is serving as a database for
name lookup.

What am I missing?

-- Gaby


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