From: John David Anglin Date: Sat, 29 Feb 2020 17:32:24 +0000 (+0000) Subject: Explicitly link with libatomic when needed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68a1a11fad06fed89c9cc53c247fea3cc8bb7cc8;p=gcc.git Explicitly link with libatomic when needed. 2020-02-29 John David Anglin * testsuite/30_threads/stop_token/stop_callback.cc: Add libatomic option. * testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc: Likewise. * testsuite/30_threads/stop_token/stop_callback/deadlock.cc: Likewise. * testsuite/30_threads/stop_token/stop_callback/destroy.cc: Likewise. * testsuite/30_threads/stop_token/stop_callback/invoke.cc: Likewise. * testsuite/30_threads/stop_token/stop_source.cc: Likewise. * testsuite/30_threads/stop_token/stop_source/assign.cc: Likewise. * testsuite/30_threads/stop_token/stop_token.cc: Likewise. * testsuite/30_threads/stop_token/stop_token/stop_possible.cc: Likewise. --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f2242e1efd5..85a0cf25c74 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,18 @@ 2020-02-29 John David Anglin + * testsuite/30_threads/stop_token/stop_callback.cc: Add libatomic + option. + * testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc: + Likewise. + * testsuite/30_threads/stop_token/stop_callback/deadlock.cc: Likewise. + * testsuite/30_threads/stop_token/stop_callback/destroy.cc: Likewise. + * testsuite/30_threads/stop_token/stop_callback/invoke.cc: Likewise. + * testsuite/30_threads/stop_token/stop_source.cc: Likewise. + * testsuite/30_threads/stop_token/stop_source/assign.cc: Likewise. + * testsuite/30_threads/stop_token/stop_token.cc: Likewise. + * testsuite/30_threads/stop_token/stop_token/stop_possible.cc: + Likewise. + PR libstdc++/92906 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update. diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc index da44f8ad8ed..b84d3af4f9b 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } #include diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc index 12c54db554f..96f7197c3da 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a -pthread" } +// { dg-add-options libatomic } // { dg-require-effective-target c++2a } // { dg-require-effective-target pthread } // { dg-require-gthreads "" } diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc index f9de6e02562..c59446cf1b0 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } #include diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc index 3fa4d21c55c..b94743a884c 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a -pthread" } +// { dg-add-options libatomic } // { dg-require-effective-target c++2a } // { dg-require-effective-target pthread } // { dg-require-gthreads "" } diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc index 9b8137cc46d..dc121121a59 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } #include diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc index 9d15f0781ea..7b2ae70d3b5 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } #include diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc index c822e8e398f..5aaaa05158f 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } #include diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc index f8adc42b271..2ab16765bea 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } #include diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc index ee8de6889ed..4ac45b61f4a 100644 --- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc +++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } #include