public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Giuliano Belinassi <giulianob@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/giulianob/heads/autopar_rebase2)] libstdc++: Avoid using __float128 in strict modes Date: Tue, 18 Aug 2020 01:21:24 +0000 (GMT) [thread overview] Message-ID: <20200818012124.5AD3C3985829@sourceware.org> (raw) https://gcc.gnu.org/g:e7457aae14f6a501f142171f7becd8619bb1a218 commit e7457aae14f6a501f142171f7becd8619bb1a218 Author: Jonathan Wakely <jwakely@redhat.com> Date: Fri Jul 31 19:58:03 2020 +0100 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. Diff: --- libstdc++-v3/testsuite/26_numerics/numbers/float128.cc | 2 +- .../std/concepts/concepts.lang/concept.arithmetic/floating_point.cc | 2 +- 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 51ce21570e0..421af7af67f 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 1e7d649b6a7..9617889505f 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
reply other threads:[~2020-08-18 1:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200818012124.5AD3C3985829@sourceware.org \ --to=giulianob@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).