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: [gcc-in-cxx] PATCH COMMITTED: Combine all tree codes into one enum



On Jun 19, 2008, at 12:20 PM, Ian Lance Taylor wrote:


One hassle with compiling gcc in C++ is that we casually mix enum
types in the frontends.  This was originally done because the code
field in the tree type was eight bits, and there was not enough room
to hold all the different tree codes used by all the frontends.
However, the code field is now 16 bits, and there is no longer any
reason for the awkward tree code split.

I have committed this patch to the gcc-in-cxx branch to generate a
single set of tree codes across all the frontends.  I am testing this
patch for mainline.

Does this cause any compile-time slowdown? One impact of this is that it will make switch statement jump tables more sparse, and may cause them to drop down to branch trees.


-Chris


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