public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-9072] libstdc++: Change test to work without 64-bit atomics Date: Tue, 24 Nov 2020 23:58:34 +0000 (GMT) [thread overview] Message-ID: <20201124235834.E05943857C7B@sourceware.org> (raw) https://gcc.gnu.org/g:a04bd36273c9cedc168b655eb10c16eb96608201 commit r10-9072-ga04bd36273c9cedc168b655eb10c16eb96608201 Author: Jonathan Wakely <jwakely@redhat.com> Date: Fri Oct 2 22:14:06 2020 +0100 libstdc++: Change test to work without 64-bit atomics This fixes a linker error for older ARM cores without 64-bit atomics. libstdc++-v3/ChangeLog: * testsuite/29_atomics/atomic_float/value_init.cc: Use float instead of double so that __atomic_load_8 isn't needed. (cherry picked from commit 324118378e4e26d9c0f86734af26538491c5c5fc) Diff: --- libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc b/libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc index 237c0dd13ed..98c6b0c7d01 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc @@ -21,13 +21,13 @@ #include <atomic> #include <testsuite_hooks.h> -constexpr std::atomic<double> a; +constexpr std::atomic<float> a; void test01() { VERIFY(a.load() == 0); - static_assert(std::is_nothrow_default_constructible_v<std::atomic<double>>); + static_assert(std::is_nothrow_default_constructible_v<std::atomic<float>>); } int
reply other threads:[~2020-11-24 23:58 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=20201124235834.E05943857C7B@sourceware.org \ --to=redi@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).