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]

Re: Great example of why "everything is a tree" sucks


On Wed, Nov 13, 2013 at 5:30 AM, Diego Novillo <dnovillo@google.com> wrote:
> On Wed, Nov 13, 2013 at 8:25 AM, Joseph S. Myers
> <joseph@codesourcery.com> wrote:
>
>> assignment in general to fix bug 58943.  I'd be happy for front ends to
>> move to doing all these things themselves, rather than trying to define
>> GENERIC in a way that works for every language's requirements on when
>> things are evaluated and when storage is allocated / deallocated.
>
> I agree. I would move away from trying to give FEs a target in the
> form of another high-level AST.  When doing codegen, it would be
> preferable if they express all the needed semantics in GIMPLE
> directly.

That is what I wanted to do in the Go frontend, but unfortunately the
current frontend interface actually requires me to generate trees for
statements.  These trees are then immediately gimplified.  It's a
waste of time and space.

(I haven't tried to fix this because there are unfortunately even
bigger wastes of space in the Go frontend.)

Ian


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