public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-9072] libstdc++: Change test to work without 64-bit atomics
@ 2020-11-24 23:58 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-11-24 23:58 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-24 23:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 23:58 [gcc r10-9072] 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).