From: Jeff Garzik <jgarzik@pobox.com>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: Hugh Dickins <hugh@veritas.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] revert to static = {0}
Date: Tue, 05 Aug 2003 17:13:00 -0400 [thread overview]
Message-ID: <3F301DDC.2050502@pobox.com> (raw)
In-Reply-To: <20030805190659.GT32488@holomorphy.com>
William Lee Irwin III wrote:
> On Tue, 5 Aug 2003, Jeff Garzik wrote:
>
>>>If it's const, it shouldn't be linked into anything at all... right?
>
>
> On Tue, Aug 05, 2003 at 07:51:41PM +0100, Hugh Dickins wrote:
>
>>Sorry, Jeff, I don't get your point.
>
>
> I suspect this assumes const values will get constant folded, which I'm
> not sure is the case, though it certainly sounds legal and worthwhile
> for a compiler to do when reasonable (i.e. for small structures and/or
> extractions of small fields of const structures).
Correct. In fact, some Linux kernel code _assumes_ the compiler will
fold constants...
Jeff
prev parent reply other threads:[~2003-08-05 21:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-05 15:48 [PATCH] revert to static = {0} Hugh Dickins
2003-08-05 16:07 ` Arjan van de Ven
2003-08-05 18:41 ` [PATCH] revert to static = {0} + comment Hugh Dickins
2003-08-05 16:09 ` [PATCH] revert to static = {0} Randy.Dunlap
2003-08-05 18:49 ` Hugh Dickins
2003-08-05 16:18 ` Lou Langholtz
2003-08-05 17:44 ` Jeff Garzik
2003-08-05 18:51 ` Hugh Dickins
2003-08-05 19:06 ` William Lee Irwin III
2003-08-05 21:13 ` Jeff Garzik [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=3F301DDC.2050502@pobox.com \
--to=jgarzik@pobox.com \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wli@holomorphy.com \
/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.