aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-07-31 19:58:03 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-07-31 19:58:03 +0100
commitdc8c00966ef89581447f549ebdea98dd72003fd8 (patch)
treec150aca3955cc8be0e1c66cf0f6e9dda83daeca6
parent9d613af2b45d910b37044cdbd5f8bb2ac279d06d (diff)
downloadgcc-dc8c00966ef89581447f549ebdea98dd72003fd8.zip
gcc-dc8c00966ef89581447f549ebdea98dd72003fd8.tar.gz
gcc-dc8c00966ef89581447f549ebdea98dd72003fd8.tar.bz2
libstdc++: Avoid using __float128 in strict modes
libstdc++-v3/ChangeLog: * testsuite/26_numerics/numbers/float128.cc: Check __STRICT_ANSI__ before using __float128. * testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc: Likewise.
-rw-r--r--libstdc++-v3/testsuite/26_numerics/numbers/float128.cc2
-rw-r--r--libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/26_numerics/numbers/float128.cc b/libstdc++-v3/testsuite/26_numerics/numbers/float128.cc
index 51ce215..421af7a 100644
--- a/libstdc++-v3/testsuite/26_numerics/numbers/float128.cc
+++ b/libstdc++-v3/testsuite/26_numerics/numbers/float128.cc
@@ -20,7 +20,7 @@
#include <numbers>
-#if defined(_GLIBCXX_USE_FLOAT128)
+#if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128)
void
test01()
{
diff --git a/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc b/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc
index 1e7d649..9617889 100644
--- a/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc
+++ b/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc
@@ -23,7 +23,7 @@
static_assert( std::floating_point<float> );
static_assert( std::floating_point<double> );
static_assert( std::floating_point<long double> );
-#ifdef _GLIBCXX_USE_FLOAT128
+#if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128)
static_assert( std::floating_point<__float128> );
#endif