lkml.org 
[lkml]   [2004]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: GCC nested functions?
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.388 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site