From: der.herr@hofr.at (Nicholas Mc Guire)
To: kernelnewbies@lists.kernelnewbies.org
Subject: inline keyword
Date: Sun, 13 Mar 2016 08:40:37 +0000 [thread overview]
Message-ID: <20160313084037.GA5652@osadl.at> (raw)
In-Reply-To: <20160311184727.GB24341@kroah.com>
On Fri, Mar 11, 2016 at 10:47:27AM -0800, Greg KH wrote:
> On Fri, Mar 11, 2016 at 01:39:53PM -0500, Wenda Ni wrote:
> > Hi all,
> >
> > For a function that is defined static but without an explicit "inline" keyword,
> > is there a possibility that compiler will optimize it to be a static inline
> > function?
>
> Yes there is.
>
see -finline-small-functions/-finline-functions-called-once in the gcc manual,
which are enabled by -O2 but can be controlled via -finline-limit and
-fkeep-inline-functions.
thx!
hofrat
prev parent reply other threads:[~2016-03-13 8:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-11 18:39 inline keyword Wenda Ni
2016-03-11 18:47 ` Greg KH
2016-03-13 8:40 ` Nicholas Mc Guire [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=20160313084037.GA5652@osadl.at \
--to=der.herr@hofr.at \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).