On Oct 2, 2023, at 1:24 AM, Christophe Lyon <christophe.l...@linaro.org> wrote: > > ping? > > On Sun, 10 Sept 2023 at 21:31, Christophe Lyon <christophe.l...@linaro.org> > wrote: > Some targets like arm-eabi with newlib and default settings rely on > __sync_synchronize() to ensure synchronization. Newlib does not > implement it by default, to make users aware they have to take special > care. > > This makes a few tests fail to link. > > This patch adds a new thread_fence effective target (similar to the > corresponding one in libstdc++ testsuite), and uses it in the tests > that need it, making them UNSUPPORTED instead of FAIL and UNRESOLVED. > > 2023-09-10 Christophe Lyon <christophe.l...@linaro.org> > > gcc/ > * doc/sourcebuild.texi (Other attributes): Document thread_fence > effective-target. > > gcc/testsuite/ > * g++.dg/init/array54.C: Require thread_fence. > * gcc.dg/c2x-nullptr-1.c: Likewise. > * gcc.dg/pr103721-2.c: Likewise. > * lib/target-supports.exp (check_effective_target_thread_fence): > New.
Ok.