From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Thiago Galesi <thiagogalesi@gmail.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] crc32: remove useless __pure modifier from functions
Date: Mon, 02 Mar 2009 19:28:31 +0200 [thread overview]
Message-ID: <1236014911.18284.89.camel@penberg-laptop> (raw)
In-Reply-To: <82ecf08e0903020750q3670de6u4162e4f01c847003@mail.gmail.com>
On Mon, 2009-03-02 at 12:50 -0300, Thiago Galesi wrote:
> Actually, the effects of most keywords (like const, etc) affect things
> outside of the module (the callers)
>
> http://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Function-Attributes.html
> has a good explanation.
>
> Briefly, a _pure function only depends on its parameters and the only
> return is via the function return, so the compiler can optimize some
> of its calls away.
Hmm. They're not marked as pure in the header files. Does GCC look it up
from the object file or something for this...?
Pekka
next prev parent reply other threads:[~2009-03-02 17:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 15:18 Pekka Enberg
2009-03-02 15:50 ` Thiago Galesi
2009-03-02 17:28 ` Pekka Enberg [this message]
2009-03-02 17:42 ` Thiago Galesi
2009-03-03 9:33 ` Will Newton
2009-03-03 13:17 ` Thiago Galesi
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=1236014911.18284.89.camel@penberg-laptop \
--to=penberg@cs.helsinki.fi \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=thiagogalesi@gmail.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 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®