Re: GCC nested functions?
From: Christoph Hellwig
Date: Wed May 12 2004 - 13:13:17 EST
On Wed, May 12, 2004 at 10:59:24AM -0700, Stephen Hemminger wrote:
> Redoing it as separate functions is easy enough, but the questions are:
> - Are gcc nested functions allowed in the kernel? If not where should
> this restriction be put in Documentation? CodingStyles?
nested function are a horrible gcc misfeature. So far people had enough
taste to not introduce them without explicitly forbidding it ;-)
Maybe we should add a section to Documentation/CodingStyles that says
which gcc extensions are okay for kernel use.
> - Or is gcc on ia64 just too stupid? or do some more support routines
> need to exist in arch/ia64?
> - Do other architectures (sparc, ppc) have similar problems?
There's a few architectures needing libgcc help for trampolines, but I
don't remember which ones exactly.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/