On Wed, Nov 13, 2013 at 5:30 AM, Diego Novillo <dnovi...@google.com> wrote: > On Wed, Nov 13, 2013 at 8:25 AM, Joseph S. Myers > <jos...@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