This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: John David Anglin <dave dot anglin at bell dot net>, GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org
- Date: Tue, 12 Mar 2019 21:50:58 -0400 (EDT)
- Subject: Re: [PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux
- References: <54b2ad46-4e9c-1abe-07f9-7d123ff63c47@bell.net> <20190311120137.GW21503@redhat.com>
Regarding this sometimes-add--latomic(-in-testsuite) that is
revisited:
When is it appropriate to make the user add -latomic to link
their program? Perhaps different answers for fortran and C++.
I'm guessing "always when using any atomic construct" for C.
I had a grep-look in gcc/doc before asking; I can't see we say
anything.
I don't think "when the target lacks certain atomic features" is
a full valid answer, except pragmatically, to paper over a bug.
brgds, H-P
PS. I'll do the patch if you (someone) does the words.