[tree-ssa][rfc] plans for nested functions

Frank Heckenbach frank@g-n-u.de
Sun Sep 28 21:49:00 GMT 2003


Linus Torvalds wrote:

> Richard Henderson wrote:
> >
> > This is stuff that was running around my head this morning.
> > I mostly wanted to write this down so that I don't forget...
> >
> > The problem I'm trying to solve is that, at present, we have
> > ordering issues wrt compilation of nested functions.
> >
> > (1) We depend heavily on rtl-level state in order to compile
> >     nested functions.
>
> Why do you want to continue to support nested functions in the first
> place? They are an abomination, a gcc-specific extension, and nobody
> sane uses them (yeah, yeah, libobj, but I said _sane_).

This may be true for C, but the backend is also used for other
languages, e.g. Pascal which requires nested functions.

Frank

-- 
Frank Heckenbach, frank@g-n-u.de
http://fjf.gnu.de/
GnuPG and PGP keys: http://fjf.gnu.de/plan (7977168E)



More information about the Gcc mailing list