public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mike Harrold <mharrold@cas.org>
To: aoliva@redhat.com (Alexandre Oliva)
Cc: mharrold@cas.org (Mike Harrold), gcc-help@gcc.gnu.org
Subject: Re: -fno-default-inline
Date: Fri, 29 Jun 2001 21:47:00 -0000	[thread overview]
Message-ID: <200106300447.AAA09555@mah21awu.cas.org> (raw)
In-Reply-To: <orr8w26121.fsf@guarana.lsd.ic.unicamp.br>

> 
> On Jun 29, 2001, Mike Harrold <mharrold@cas.org> wrote:
> 
> > Or is this a case of pleading with the libstdc++ folks to mark functions
> > as inline where appropriate?
> 
> I'm not sure we should add redundant keywords to libstdc++ code to
> make room for a non-standard extension.  Is it really too hard for you
> to move the member function definitions out of the class body, so that
> the implicit inline Standard rule doesn't apply to them?

I could, yes, but then that defeats the purpose of using pragma interface
and pragma implementation.

From the info page:

   "C++ object definitions can be quite complex.  In principle, your
source code will need two kinds of things for each object that you use
across more than one source file.  First, you need an "interface"
specification, describing its structure with type declarations and
function prototypes.  Second, you need the "implementation" itself.  It
can be tedious to maintain a separate interface description in a header
file, in parallel to the actual implementation.  It is also dangerous,
since separate interface and implementation definitions may not remain
parallel."

Not to mention maintaining consistant documentation in both the header
and source files is next to impossible. Hence why I chose to follow this
path.

I agree; inserting "inline" all over the standard library headers is
probably not the way to go. So would it be possible to refine the
-fno-default-inline option in some way to exclude them from non-inlining?

Regards,

/Mike

      reply	other threads:[~2001-06-29 21:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-29 10:35 -fno-default-inline Mike Harrold
2001-06-29 21:31 ` -fno-default-inline Alexandre Oliva
2001-06-29 21:47   ` Mike Harrold [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=200106300447.AAA09555@mah21awu.cas.org \
    --to=mharrold@cas.org \
    --cc=aoliva@redhat.com \
    --cc=gcc-help@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).