public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Phil Edwards <pedwards@disaster.jaj.com>
To: Zack Weinberg <zackw@stanford.edu>
Cc: Nix <nix@esperi.demon.co.uk>, gcc@gcc.gnu.org
Subject: Re: Libgcc symbols
Date: Mon, 16 Apr 2001 09:28:00 -0000	[thread overview]
Message-ID: <20010416124214.A31054@disaster.jaj.com> (raw)
In-Reply-To: <20010416090821.L339@stanford.edu>

On Mon, Apr 16, 2001 at 09:08:22AM -0700, Zack Weinberg wrote:
> #ifdef L__dummy
> void
> __dummy (void) {}
> #endif
> 
> Referenced nowhere, but I'd like to know why it was added in the first
> place before killing it.

I don't know, but I've seen something very similar in a much less complex
project.  A static library of makeup/replacement routines was being created,
but the list of routines (and thus the list of .o files) could conceivably
be empty, causing grief for 'ar'.  A dummy .o was always created just to
ensure that 'ar' would also have at least one object file to work with.

I can't imagine all of the routines in LIB2FUNCS not being necessary,
so the __dummy here is probably for some other purpose than my example.


> Why we still have libio in-tree at all is another question.  (I have
> never understood why iostreams aren't a layer of paint on top of
> the public stdio interface.)

Right now, it is.  Which is a pity, because it's another layer of buffering
and function calls.  Efficiency drops considerably on some platforms when
iostreams has to funnel everything through stdio.

Ideally, we'd like the C and C++ I/O pieces to each go directly to some
common underlying layer that's as thin as possible.  When we're building on,
say, glibc 2.2 platforms, we detect that the underlying layers are already
"out there" and ignore the in-tree version.  Otherwise we build our own.

This ran into problems a while back and was disabled by default.


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

  reply	other threads:[~2001-04-16  9:28 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-13 21:11 Mark Mitchell
2001-04-14  8:02 ` law
2001-04-16  5:54 ` Nix
2001-04-16  9:08   ` Zack Weinberg
2001-04-16  9:28     ` Phil Edwards [this message]
2001-04-16  9:44       ` Zack Weinberg
2001-04-16 10:43         ` Gabriel Dos Reis
2001-04-16 11:52         ` Phil Edwards
2001-04-16 10:39       ` Gabriel Dos Reis
2001-04-16 11:00     ` Nix
2001-04-17 11:23     ` Richard Henderson
2001-04-17 16:17     ` Joern Rennecke
2001-04-16 10:17   ` Profiling with '-a' [was Re: Libgcc symbols] Scott A Crosby
2001-04-16 15:01     ` Nix
2001-04-16 11:06   ` Libgcc symbols Mark Mitchell
2001-04-17 16:10 ` Michael Meissner
2001-04-17 17:57   ` Joe Buck
2001-04-17 23:11     ` Russ Allbery
2001-04-17 23:14       ` Russ Allbery
2001-04-16  9:35 Richard Kenner
2001-04-16 12:22 ` Alexandre Oliva
2001-04-16 12:25 Richard Kenner
2001-04-16 12:48 ` Alexandre Oliva
2001-04-17 11:29 ` Richard Henderson
2001-04-16 12:49 Richard Kenner
2001-04-16 12:58 dewar
2001-04-17 11:33 Richard Kenner
2001-04-17 12:14 dewar

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=20010416124214.A31054@disaster.jaj.com \
    --to=pedwards@disaster.jaj.com \
    --cc=gcc@gcc.gnu.org \
    --cc=nix@esperi.demon.co.uk \
    --cc=zackw@stanford.edu \
    /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).