This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Removing space waste for g++ static inlined objects


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]