This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38828] g++ 4.3.2: -O2 without -fno-inline-small-functions makes some template instantiations disappear
- From: "ronan dot lehy at probayes dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jan 2009 16:39:08 -0000
- Subject: [Bug c++/38828] g++ 4.3.2: -O2 without -fno-inline-small-functions makes some template instantiations disappear
- References: <bug-38828-17180@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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