------- Comment #2 from ronan dot lehy at probayes dot com 2009-01-13 16:39 ------- (In reply to comment #1) > Created an attachment (id=17088) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17088&action=view)
I had to trim a bit the source to be make the preprocessed source fit into 1000 ko. With it, the expected nm output (-O2 -fno-inline-small-functions) is: 00000000 W void boost::serialization::serialize<boost::archive::xml_iarchive>(boost::archive::xml_iarchive&, A&, unsigned int) 00000000 W void boost::serialization::serialize<boost::archive::xml_iarchive>(boost::archive::xml_iarchive&, B&, unsigned int) And the one with missing symbols (-O2) is: 00000000 W void boost::serialization::serialize<boost::archive::xml_iarchive>(boost::archive::xml_iarchive&, B&, unsigned int) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38828