This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: C++ vague linkage data


On Mon, Nov 28, 2005 at 04:10:55PM +0100, Lubos Lunak wrote:
>  when gcc emits vague linkage data for C++ like vtables it makes them all 
> weak. Is there some reason why this needs to be done?

In the case of vtables, they are only weak if all the virtual functions
are defined as inline.  Otherwise the vtable is defined only in the
.o file that defines the first non-inline virtual function.


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