From: Matthew Wilcox <willy@debian.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] gcc won't inline function returning struct?
Date: Thu, 01 Nov 2001 00:40:56 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805431@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805421@msgid-missing>
On Wed, Oct 31, 2001 at 04:27:17PM -0800, Jim Wilson wrote:
> extern inline means emit this function inline if you can, otherwise emit
> nothing. Since gcc makes no promise that it will inline any function, it
> is inherently unsafe to put extern inline in a C file. There is no guarantee
> that it will work.
You're overlooking an important reason to mark functions as extern inline.
That is the case where the author knows that having the functions out
of line will cause the software to not work. I believe this is true in
this instance -- the software is a softmodem and is therefore real-time.
If it makes function calls when the author was expecting it to do two
computations, its performance may well be insufficient to function.
It is better for this program to fail to compile than run too slowly.
--
Revolutions do not require corporate support.
next prev parent reply other threads:[~2001-11-01 0:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-31 21:39 [Linux-ia64] gcc won't inline function returning struct? Bdale Garbee
2001-10-31 22:23 ` Jim Wilson
2001-10-31 23:02 ` n0ano
2001-11-01 0:27 ` Jim Wilson
2001-11-01 0:40 ` Matthew Wilcox [this message]
2001-11-01 0:49 ` Jim Wilson
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=marc-linux-ia64-105590698805431@msgid-missing \
--to=willy@debian.org \
--cc=linux-ia64@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