aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rustspec.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-18 13:10:15 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-18 22:50:48 +0100
commit27d0cfcb2b33de07351d9cb26f62d04d7416716c (patch)
tree465fc1ce481a5e6fe7b734b181098510e6ffeb26 /gcc/rust/rustspec.cc
parent6785917c9103e18bba0d718ac3b65a386d9a14f7 (diff)
downloadgcc-27d0cfcb2b33de07351d9cb26f62d04d7416716c.zip
gcc-27d0cfcb2b33de07351d9cb26f62d04d7416716c.tar.gz
gcc-27d0cfcb2b33de07351d9cb26f62d04d7416716c.tar.bz2
libstdc++: Revert pre-C++23 support for 16-bit float types [PR111060]
In r14-3304-g1a566fddea212a and r14-3305-g6cf214b4fc97f5 I tried to enable std::format for 16-bit float types before C++23. This causes errors for targets where the types are defined but can't actually be used, e.g. i686 without sse2. Make the std::numeric_limits and std::formatter specializations for _Float16 and __bfloat16_t depend on the __STDCPP_FLOAT16_T__ and __STDCPP_BFLOAT16_T__ macros again, so they're only defined for C++23 when the type is fully supported. This is OK because the main point of my earlier commits was to add better support for _Float32 and _Float64. It seems fine for the new 16-bit types to only be supported for C++23, as they were never present before GCC 13 anyway. libstdc++-v3/ChangeLog: PR target/111060 * include/std/format (formatter): Only define specializations for 16-bit floating-point types for C++23. * include/std/limits (numeric_limits): Likewise.
Diffstat (limited to 'gcc/rust/rustspec.cc')
0 files changed, 0 insertions, 0 deletions