]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Remove redundant dependencies on _GLIBCXX_USE_C99_STDINT_TR1
authorJonathan Wakely <jwakely@redhat.com>
Fri, 12 May 2023 13:25:50 +0000 (14:25 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 12 May 2023 16:47:09 +0000 (17:47 +0100)
commit1f973c295b699011acd7d5fcb04bd2bf887da16d
treee92ffdb0a80c78872c5fe0d8e9afd719762d7c97
parent0b6aebf7bbe1256d8d9ace7e4e44c7b032e8592b
libstdc++: Remove redundant dependencies on _GLIBCXX_USE_C99_STDINT_TR1

We never need to use std::make_unsigned in std::char_traits<char16_t>
and std::char_traits<char32_t> because <cstdint> guarantees to provide
the types we need, since r9-2028-g8ba7f29e3dd064.

Similarly, experimental::source_location can just assume uint_least32_t
is defined by <cstdint>.

libstdc++-v3/ChangeLog:

* include/bits/char_traits.h (char_traits<char16_t>): Do not
depend on _GLIBCXX_USE_C99_STDINT_TR1.
(char_traits<char32_t>): Likewise.
* include/experimental/source_location: Likewise.
libstdc++-v3/include/bits/char_traits.h
libstdc++-v3/include/experimental/source_location