This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: ar speed: sixfold improvement [PATCH]
- To: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
- Subject: Re: ar speed: sixfold improvement [PATCH]
- From: Zack Weinberg <zack@rabi.phys.columbia.edu>
- Date: Mon, 04 May 1998 07:43:31 -0400
- cc: libc-hacker@cygnus.com
On 04 May 1998 10:47:13 +0200, Andreas Schwab wrote:
>Zack Weinberg <zack@rabi.phys.columbia.edu> writes:
>
>|> Here's a revised patch. This version also fixes a critical bug and
>|> streamlines the dependencies for libc*.a inside Makerules. I can't
>|> complete a build as CVS is inconsistent right now, but it gets far
>|> enough along (halfway through `make others') that I'm fairly sure it
>|> works.
>
>This still has a big problem: it misses all the dependencies on the
>individual files in the archive. Instead there are now only dependencies
>on the whole archive, which is not enough, because a stamp file can be
>older than the archive even though some object files are newer then the
>corresponding archive members. This is a serious bug because that can
>cause libc*.a become out of date without notice.
I don't think this is a problem in practice. The stamp files have
dependencies on all their object files. If an object gets rebuilt its
corresponding stamp will too, and that will trigger a rebuild of the
archive at top level.
zw