All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: kernel-janitors@vger.kernel.org
Subject: Re: any value to numerous checks of "#ifdef __GNUC__"?
Date: Sat, 05 Apr 2008 12:26:21 +0000	[thread overview]
Message-ID: <alpine.LFD.1.00.0804050822180.8326@localhost.localdomain> (raw)
In-Reply-To: <alpine.LFD.1.00.0804040916040.24121@localhost.localdomain>

On Sat, 5 Apr 2008, Darren Jenkins wrote:

> On Sat, Apr 5, 2008 at 12:18 AM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:

> > is it even remotely feasible that the kernel might someday support
> > a non-GNU C compiler, given the numerous gcc extensions that are
> > used?
>
> I think people are working on getting tinycc to compile an
> un-modified kernel, and I think LLVM is close-ish, also some BSD
> guys are working on PCC so it might be able to compile the kernel in
> the (distant?)future.
>
> It concerns me a little that GCC is the only OSS compiler that can
> compile the kernel.

well, as i mentioned earlier, the intel compiler is also officially
approved, but it defines __GNUC__ so it masquerades as gcc, anyway.

and, as a followup to my original question, once i looked closer, it
does look like most of that "#ifdef __GNUC__" checking does get
exported to userspace, quite possibly for exactly the reason darren
mentions -- to support *userspace* non-gcc compilation.  i'm sure
there are *some* superfluous in-kernel __GNUC__ tests, but probably
nowhere near as many as i first suspected.

rday
--

====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
====================================

      parent reply	other threads:[~2008-04-05 12:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 13:18 any value to numerous checks of "#ifdef __GNUC__"? Robert P. J. Day
2008-04-04 14:44 ` walter harms
2008-04-04 15:21 ` Robert P. J. Day
2008-04-04 15:28 ` Robert P. J. Day
2008-04-05  1:05 ` Darren Jenkins
2008-04-05 12:26 ` Robert P. J. Day [this message]

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=alpine.LFD.1.00.0804050822180.8326@localhost.localdomain \
    --to=rpjday@crashcourse.ca \
    --cc=kernel-janitors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.