This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/60936] New: Binary code bloat with std::string
- From: "d.v.a at ngs dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Apr 2014 11:10:12 +0000
- Subject: [Bug libstdc++/60936] New: Binary code bloat with std::string
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60936
Bug ID: 60936
Summary: Binary code bloat with std::string
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: d.v.a at ngs dot ru
Test program:
#include<string>
int hello()
{
std::string st("abc");
return st.length();
}
Build:
$ g++ -shared -fPIC -static-libgcc -static-libstdc++ -Wl,-s -o $@ $?
Sizes of result:
gcc-4_7-string.so: 171744
gcc-4_8-string.so: 185808
gcc-4_9-string.so: 635960