]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Only include <ext/atomicity.h> for COW string
authorJonathan Wakely <jwakely@redhat.com>
Thu, 19 May 2022 11:54:41 +0000 (12:54 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 8 Jun 2022 09:52:16 +0000 (10:52 +0100)
commit64f5d58d8151324be111ba6e13c50b4b642c41c2
tree1db223e52c8017d6c7654ff3e976011a152cac42
parentc45a9752f15bbc37d8efda0e29af5a2bfd53729d
libstdc++: Only include <ext/atomicity.h> for COW string

Since the COW std::string was moved to its own header, we don't need the
atomic dispatch helpers in the definition of std::__cxx11::string. Move
the inclusion of the <ext/atomicity.h> header to <bits/cow_string.h>
where it's needed.

libstdc++-v3/ChangeLog:

* include/bits/basic_string.h: Do not include <ext/atomicity.h>
here.
* include/bits/cow_string.h: Include it here.

(cherry picked from commit f3e22baec0290c23654e99bf184153765944f4aa)
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/cow_string.h