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: [tree-ssa][rfc] plans for nestedfunctions


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)


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