From: Andrew Morton <andrewm@uow.edu.au>
To: David Howells <dhowells@cambridge.redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] gcc compile-time assertions
Date: Thu, 03 May 2001 08:40:09 +1000 [thread overview]
Message-ID: <3AF08CC9.3E9946A7@uow.edu.au> (raw)
In-Reply-To: <10792.988818374@warthog.cambridge.redhat.com>
David Howells wrote:
>
> I've written a patch for gcc to implement compile-time assertions with an eye
> to making use of this in the kernel in the future (assuming I can get it to be
> accepted into gcc).
>
Brilliant.
It seems that there needs to be a way of detecting the
presence of the feature at compile-time, so you
can do
#ifndef HAVE_CT_ASSERT
#define __builtin_ct_assert(a, b) do{}while(0)
#endif
or whatever.
Apart from that, I'd suggest you fill out the FSF
damage waiver and see if you can make this part of
stock gcc.
-
prev parent reply other threads:[~2001-05-02 22:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-02 15:46 [RFC] gcc compile-time assertions David Howells
2001-05-02 22:40 ` Andrew Morton [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=3AF08CC9.3E9946A7@uow.edu.au \
--to=andrewm@uow.edu.au \
--cc=dhowells@cambridge.redhat.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox