diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-12-23 21:51:24 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-01-08 12:45:38 +0000 |
commit | a37cd4f9064fdf574461bcab2e1f4578b7f411db (patch) | |
tree | 1b5b5b5315f1e986ef1d9f9b48d7f56f31cbdedf /gcc | |
parent | 21afe12867ed9e13610043ac4d336dc248868bee (diff) | |
download | gcc-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