mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: David Mosberger-Tang <davidm@hpl.hp.com>,
	linux-ia64@linuxia64.org, linux-kernel@vger.kernel.org
Subject: Re: GCC nested functions?
Date: Wed, 12 May 2004 19:04:54 +0100	[thread overview]
Message-ID: <20040512190454.A31410@infradead.org> (raw)
In-Reply-To: <20040512105924.54a8211b@dell_ss3.pdx.osdl.net>; from shemminger@osdl.org on Wed, May 12, 2004 at 10:59:24AM -0700

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.


  reply	other threads:[~2004-05-12 18:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-12 17:59 Stephen Hemminger
2004-05-12 18:04 ` Christoph Hellwig [this message]
2004-05-13  0:07   ` Mitchell Blank Jr
2004-05-12 18:11 ` William Lee Irwin III
2004-05-12 18:13 ` David Mosberger
2004-05-12 19:30 ` viro
2004-05-12 19:34 ` Gabriel Paubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040512190454.A31410@infradead.org \
    --to=hch@infradead.org \
    --cc=davidm@hpl.hp.com \
    --cc=linux-ia64@linuxia64.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shemminger@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®