This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Removing space waste for g++ static inlined objects
- To: "Ronald F. Guilmette" <rfg at monkeys dot com>
- Subject: Re: Removing space waste for g++ static inlined objects
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Thu, 15 Feb 2001 10:21:17 +1100 (EST)
- cc: David Korn <dkorn at pixelpower dot com>, "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
On Wed, 14 Feb 2001, Ronald F. Guilmette wrote:
> Specifically, let's say that you have a class named `C' in one translation
> unit, and you also have a totally different class `C' in a different compi-
> lation unit.
If gnu ld implemented SEC_LINK_DUPLICATES_SAME_CONTENTS, we could avoid
these problems. See ld/ldlang.c:section_already_linked.
Unfortunately, that has it's own set of problems. eg. consider
what happens if different optimization levels are used when compiling
different files.
Alan Modra
--
Linuxcare. Support for the Revolution.