This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++: Why do we nreverse CLASSTYPE_TAGS
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc at gcc dot gnu dot org
- Cc: mark at codesourcery dot com, jason at redhat dot com
- Date: 24 Mar 2003 19:10:01 +0100
- Subject: C++: Why do we nreverse CLASSTYPE_TAGS
- Organization: Integrable Solutions
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