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: Andreas Schwab <schwab at suse dot de>
- 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: Mon, 11 Mar 2019 14:13:24 +0100
- Subject: Re: [PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux
- References: <54b2ad46-4e9c-1abe-07f9-7d123ff63c47@bell.net> <20190311120137.GW21503@redhat.com>
On Mär 11 2019, Jonathan Wakely <jwakely@redhat.com> wrote:
> What do you think about adding the following?
>
> --- a/libstdc++-v3/testsuite/lib/dg-options.exp
> +++ b/libstdc++-v3/testsuite/lib/dg-options.exp
> @@ -257,6 +257,15 @@ proc add_options_for_net_ts { flags } {
> return $flags
> }
>
> +# Add to FLAGS all the target-specific flags to link to libatomic, if required.
> +
> +proc add_options_for_libatomic { flags } {
> + if { [istarget hppa*-*-hpux*] } {
> + return "$flags -L../../libatomic/.libs -latomic"
> + }
> + return $flags
> +}
That should probably also be enabled for riscv*-*-*.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."