Removing space waste for g++ static inlined objects
Alan Modra
alan@linuxcare.com.au
Wed Feb 14 15:21:00 GMT 2001
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.
More information about the Gcc-patches
mailing list