aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-12-23 21:51:24 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2025-01-08 12:45:38 +0000
commita37cd4f9064fdf574461bcab2e1f4578b7f411db (patch)
tree1b5b5b5315f1e986ef1d9f9b48d7f56f31cbdedf /gcc
parent21afe12867ed9e13610043ac4d336dc248868bee (diff)
downloadgcc-a37cd4f9064fdf574461bcab2e1f4578b7f411db.zip
gcc-a37cd4f9064fdf574461bcab2e1f4578b7f411db.tar.gz
gcc-a37cd4f9064fdf574461bcab2e1f4578b7f411db.tar.bz2
libstdc++: Use preprocessor conditions in std module [PR118177]
The std-clib.cc module definition file assumes that all names are available unconditionally, but that's not true for all targets. Use the same preprocessor conditions as are present in the <cxxx> headers. A similar change is needed in std.cc.in for the <chrono> features that depend on the SSO std::string, guarded with a __cpp_lib_chrono value indicating full C++20 support. The conditions for <cmath> are omitted from this change, as there are a large number of them. That probably needs to be fixed. libstdc++-v3/ChangeLog: PR libstdc++/118177 * src/c++23/std-clib.cc.in: Use preprocessor conditions for names which are not always defined. * src/c++23/std.cc.in: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions