PATCH RFC: Combine all tree codes into one

Andrew Pinski pinskia@gmail.com
Fri Jun 20 11:57:00 GMT 2008


On Fri, Jun 20, 2008 at 7:51 AM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Fri, Jun 20, 2008 at 7:46 AM, Ian Lance Taylor <iant@google.com> wrote:
>> This patch combines all tree codes into a single enumeration, rather
>> than having a separate enumeration for each frontend.  We used to need
>> to use a separate enumeration because the tree code field was only 8
>> bits.  Now that the tree code field is 16 bits, we can reasonably
>> combine them.  This simplifies making gcc compilable by a C++ compiler
>> without lots of extra casting.  It also simplifies the code and the
>> frontend interface.
>
>
> I like this.  I mentioned this needing to be done at the summit so
> thanks for taking care of this.

I forgot to mention this should be able to help the Objective-C++
front-end in the future (when objc-act.c is split up) as the biggest
issue was that the tree codes between the Objective-C and
Objective-C++ front-ends were different.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list