public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-3636] libstdc++: Change test to work without 64-bit atomics
@ 2020-10-02 21:33 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-10-02 21:33 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:324118378e4e26d9c0f86734af26538491c5c5fc
commit r11-3636-g324118378e4e26d9c0f86734af26538491c5c5fc
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.
I think the { dg-add-options libatomic } is no longer needed, but it's
harmless to keep it there.
libstdc++-v3/ChangeLog:
* testsuite/29_atomics/atomic_float/value_init.cc: Use float
instead of double so that __atomic_load_8 isn't needed.
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 38af9bdc8d4..dd8114d6034 100644
--- a/libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc
+++ b/libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc
@@ -22,13 +22,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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-02 21:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 21:33 [gcc r11-3636] libstdc++: Change test to work without 64-bit atomics Jonathan Wakely
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).