Re: gcov coverage on template classes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nava Whiteford wrote:
ok, so there's no way to force the compiler to emit all methods for any
template class that is instantiated?


I'm not 100% sure, but I think the linker also discards unused methods, so you might have managed to get gcc to emit the unused methods (I don't recall details, but I think that is easy to do) but still not have then in the executable because the linker discarded them.

You could create and check a .o file to see whether the compiler emitted them. If it did, I think there is a linker option to prevent the linker from discarding them.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux