mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: linux-os@analogic.com, Russell King <rmk+lkml@arm.linux.org.uk>,
	Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: sparse segfaults
Date: Sun, 21 Nov 2004 17:02:42 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0411211644200.20993@ppc970.osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.53.0411212343340.17752@yvahk01.tjqt.qr>



On Sun, 21 Nov 2004, Jan Engelhardt wrote:
> 
> And it's specific to GCC. This kinda ruins some tries to get ICC working on the
> kernel tree :)

Ahh, but Intel compiler developers are cunning, and can make (and afaik, 
_did_ make) icc compatible with the good gcc extensions.

And as we all know, the definition of "good gcc extension" really is "the
kernel uses it". (Some of the good ones turned up in C99 and are thus no
longer extensions - obviously gcc wasn't the only compiler that
implemented them).

Good gcc extensions:
 - the inline asm syntax (which could be better, but hey, the gcc syntax
   is certainly not the worst around either)
 - statement expressions (but dammit, it should have used "return" to 
   return the value)
 - short conditionals
 - symbol attributes (sections, "used", asm naming, etc)
 - local labels and computed goto
 - case ranges
 - typeof and alignof.
 - void * arithmetic

BAD gcc extensions:
 - nested functions (gaah)
 - extended lvalues (casts, conditionals and comma-operators as lvalues. 
   They are just too confusing)
 - transparent unions (dammit, you could have done it with overloading
   instead).

		Linus

  parent reply	other threads:[~2004-11-22  1:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-20 14:37 Russell King
2004-11-20 16:58 ` Linus Torvalds
2004-11-20 17:23   ` Russell King
2004-11-21 22:10 ` linux-os
2004-11-21 22:29   ` Nikita Danilov
2004-11-21 22:37   ` Linus Torvalds
2004-11-21 22:44     ` Jan Engelhardt
2004-11-21 23:43       ` Mitchell Blank Jr
2004-11-22  1:02       ` Linus Torvalds [this message]
2004-11-22 10:33         ` Jan Engelhardt
2004-11-22 16:22           ` Linus Torvalds
2004-11-22 18:21             ` Jan Engelhardt
2004-11-22 18:39             ` Mitchell Blank Jr
2004-11-22 18:54               ` Linus Torvalds
2004-11-22 20:30                 ` Duncan Sands
2004-11-23 13:59                   ` Nix
2004-11-22 19:16               ` Linus Torvalds
2005-03-26 22:48 Jan Engelhardt

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=Pine.LNX.4.58.0411211644200.20993@ppc970.osdl.org \
    --to=torvalds@osdl.org \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    --cc=rmk+lkml@arm.linux.org.uk \
    /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®