[1/2] Add option to disable c++11 std::string small-size

Mikhail Kashkarov m.kashkarov@partner.samsung.com
Tue May 29 06:53:00 GMT 2018


Add option to disable c++11 std::string small-sizeoptimization usage.

     * include/bits/basic_string.h [_GLIBCXX_DISABLE_STRING_SSO_USAGE]:
     (basic_string::_M_is_local, basic_string::_M_destroy)
     (basic_string::basic_string, basic_string::basic_string(const _Alloc&))
     (basic_string::basic_string(basic_string&&))
     (basic_string::basic_string(basic_string&&, const _Alloc&))
     (basic_string::operator=(const basic_string&))
     (basic_string::operator=(basic_string&&))
     (basic_string::clear()): Disable usage of _M_local_buf if
      _GLIBCXX_DISABLE_STRING_SSO_USAGE is defined.
     * include/bits/basic_string.tcc [_GLIBCXX_DISABLE_STRING_SSO_USAGE]:
     (basic_string::_M_construct, basic_string::reserve)
     (basic_string::_M_replace): Disable usage of _M_local_buf if
     _GLIBCXX_DISABLE_STRING_SSO_USAGE is defined.
     * testsuite/basic_string/allocator/char/copy_assign.cc: Support for
     std::string without SSO.
     * testsuite/basic_string/allocator/wchar_t/copy_assign.cc: Likewise.
     * testsuite/21_strings/basic_string/init-list.cc: Likewise.
     * testsuite/rand/assoc/rand_regression_test.hpp: Likewise.
     * testsuite/rand/priority_queue/rand_regression_test.hpp: Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-options-to-disable-c-11-std-string-small-size-op.patch
Type: text/x-patch
Size: 14899 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180529/7b682df0/attachment.bin>


More information about the Libstdc++ mailing list