diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-08-07 12:52:57 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-08-17 20:24:18 +0100 |
commit | 1a566fddea212a6a8e4484f7843d8e5d39b5bff0 (patch) | |
tree | 339cd19f8f40904e42e9ed569f563def05cbef38 /gcc/rust/backend | |
parent | 8ee74c5a38fa8b83705139e6b6fa4c0b445c7c5f (diff) | |
download | gcc-1a566fddea212a6a8e4484f7843d8e5d39b5bff0.zip gcc-1a566fddea212a6a8e4484f7843d8e5d39b5bff0.tar.gz gcc-1a566fddea212a6a8e4484f7843d8e5d39b5bff0.tar.bz2 |
libstdc++: Define std::numeric_limits<_FloatNN> before C++23
The extended floating-point types such as _Float32 are supported by GCC
prior to C++23, you just can't use the standard-conforming names from
<stdfloat> to refer to them. This change defines the specializations of
std::numeric_limits for those types for older dialects, not only for
C++23.
libstdc++-v3/ChangeLog:
* include/bits/c++config (__gnu_cxx::__bfloat16_t): Define
whenever __BFLT16_DIG__ is defined, not only for C++23.
* include/std/limits (numeric_limits<bfloat16_t>): Likewise.
(numeric_limits<_Float16>, numeric_limits<_Float32>)
(numeric_limits<_Float64>): Likewise for other extended
floating-point types.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions