Great example of why "everything is a tree" sucks

Jakub Jelinek jakub@redhat.com
Wed Nov 13 10:56:00 GMT 2013


On Wed, Nov 13, 2013 at 11:49:56AM +0100, Steven Bosscher wrote:
> source language? That's still true, and one reason for it is 'tree'.
> The Ada, Fortran, and even C front ends use front-end specific data
> structures for most parsed entities and only produce 'tree' from it in
> the process of generatic GENERIC.

You are clearly misreading what the C front end does then.  It doesn't have
any IL other than trees, and uses trees for everything from the start.

And, the problems with the FEs you've talked about aren't caused by using
trees, but by folding stuff too early.  It got somewhat better in the C FE,
but the C++ FE still folds things too early everywhere.

	Jakub



More information about the Gcc mailing list