diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-08-17 18:50:36 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-09-01 16:01:23 +0100 |
commit | 283994cba687e0746f9a1018bae2c41291e362ff (patch) | |
tree | dd10c06bd69878f0461fd6d8d0b75b73aa784a60 /gcc | |
parent | dcbec954fcba42d97760c6bd98a4c5618473ec93 (diff) | |
download | gcc-283994cba687e0746f9a1018bae2c41291e362ff.zip gcc-283994cba687e0746f9a1018bae2c41291e362ff.tar.gz gcc-283994cba687e0746f9a1018bae2c41291e362ff.tar.bz2 |
libstdc++: Use std::string::__resize_and_overwrite in std::filesystem
There are a few places in the std::filesystem code that use a string as
a buffer for OS APIs to write to. We can use the new extension
__resize_and_overwrite to avoid redundant initialization of those
buffers.
libstdc++-v3/ChangeLog:
* src/c++17/fs_ops.cc (fs::absolute) [FILESYSTEM_IS_WINDOWS]:
Use __resize_and_overwrite to fill buffer.
(fs::read_symlink) [HAVE_READLINK]: Likewise.
* src/filesystem/ops-common.h (get_temp_directory_from_env)
[FILESYSTEM_IS_WINDOWS]: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions