diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-08-17 20:39:02 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-08-17 20:42:35 +0100 |
commit | d82a85b6161cbeebfe3de5d3d4cdd355e4617e69 (patch) | |
tree | fafda9687e0d7125fc2d64838fa870cc7fbc3f49 /gcc/rust/backend | |
parent | aad83d61d2e92b168688f7b6bd00b8604d11fc9f (diff) | |
download | gcc-d82a85b6161cbeebfe3de5d3d4cdd355e4617e69.zip gcc-d82a85b6161cbeebfe3de5d3d4cdd355e4617e69.tar.gz gcc-d82a85b6161cbeebfe3de5d3d4cdd355e4617e69.tar.bz2 |
libstdc++: Replace global std::string objects in tzdb.cc
When the library is built with --disable-libstdcxx-dual-abi the only
type of std::string supported is the COW string, and the two global
std::string objects in tzdb.cc have to allocate memory. I added them
thinking they would fit in the SSO string buffer, but that's not the
case when the library only uses COW strings.
Replace them with string_view objects to avoid any allocations.
libstdc++-v3/ChangeLog:
* src/c++20/tzdb.cc (tzdata_file, leaps_file): Change type to
std::string_view.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions