This is the mail archive of the gcc-bugs@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]

[Bug c++/38828] g++ 4.3.2: -O2 without -fno-inline-small-functions makes some template instantiations disappear



------- 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


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