https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124124
--- Comment #15 from Tomasz KamiĆski <tkaminsk at gcc dot gnu.org> ---
I think that this may be related to not `{dg-add-options libatomic}` not
linking
libatomic for this target. Could you see if adding appropriate tuple to to
following if in `libstdc++-v3/testsuite/lib/dg-options.exp` fixes the issue:
proc add_options_for_libatomic { flags } {
# We don't (need to) build libatomic for vxworks. Don't try to
# link it in, even on arches that support libatomic.
if { [istarget *-*-vxworks*] } {
return $flags
}
if { [istarget hppa*-*-hpux*]
|| ([istarget powerpc*-*-*] && [check_effective_target_ilp32])
|| [istarget riscv*-*-*]
|| ([istarget sparc*-*-linux-gnu] && [check_effective_target_ilp32])
+ || ([istarget arm*-*-*] && [check_effective_target_ilp32])