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 libstdc++/60936] New: Binary code bloat with std::string


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


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