aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/Makefile.am
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-07-26 15:08:00 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-07-27 12:04:18 +0100
commit7b527614ddee5244dfaa1ba35daec596bfb346e9 (patch)
tree92189a9bf3f716e50d887bb3813bfa0e7616abfd /libstdc++-v3/include/Makefile.am
parent16158c96496b537194111526d25e19f268d613b6 (diff)
downloadgcc-7b527614ddee5244dfaa1ba35daec596bfb346e9.zip
gcc-7b527614ddee5244dfaa1ba35daec596bfb346e9.tar.gz
gcc-7b527614ddee5244dfaa1ba35daec596bfb346e9.tar.bz2
libstdc++: Move COW string definitions to separate header
This moves the definitions of the COW string to a separate file, so that they don't need to be preprocessed for the common case. We could also move the SSO string definitions to a new file, so that they don't need to be preprocessed for the old ABI case, but that would require more shovel work because there are some parts of <bits/basic_string.h> and <bits/basic_string.tcc> that are common to both definitions. libstdc++-v3/ChangeLog: * include/Makefile.am: Add new header. * include/Makefile.in: Regenerate. * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Move definition of Copy-on-Write string to new file. * include/bits/basic_string.tcc: Likewise. * include/bits/cow_string.h: New file.
Diffstat (limited to 'libstdc++-v3/include/Makefile.am')
-rw-r--r--libstdc++-v3/include/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am
index 99eec55..15c0ad8 100644
--- a/libstdc++-v3/include/Makefile.am
+++ b/libstdc++-v3/include/Makefile.am
@@ -119,6 +119,7 @@ bits_headers = \
${bits_srcdir}/charconv.h \
${bits_srcdir}/codecvt.h \
${bits_srcdir}/concept_check.h \
+ ${bits_srcdir}/cow_string.h \
${bits_srcdir}/cpp_type_traits.h \
${bits_srcdir}/deque.tcc \
${bits_srcdir}/enable_special_members.h \