libstdc++: Change test to work without 64-bit atomics
authorJonathan Wakely <jwakely@redhat.com>
Fri, 2 Oct 2020 21:14:06 +0000 (22:14 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 2 Oct 2020 21:18:51 +0000 (22:18 +0100)
commit324118378e4e26d9c0f86734af26538491c5c5fc
tree2ac69e9b6f5c9fd5be98423abd56d16c6c249246
parent1ad08b64cea51d3cb989a1a176baeb8a18071231
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.
libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc