diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-04-22 15:51:08 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-04-22 15:51:08 +0100 |
commit | 58871c03318e080962f022f5d77db3c4fde3e351 (patch) | |
tree | f930a871a9aa46bd25a5e995e5cdc1e00d057a8e | |
parent | 19aa9bc9897955817622574e62b53b24ae0837e9 (diff) | |
download | gcc-58871c03318e080962f022f5d77db3c4fde3e351.zip gcc-58871c03318e080962f022f5d77db3c4fde3e351.tar.gz gcc-58871c03318e080962f022f5d77db3c4fde3e351.tar.bz2 |
libstdc++: Add options for libatomic to test
This fixes a linker error on AIX:
FAIL: 30_threads/semaphore/try_acquire_posix.cc (test for excess errors)
Excess errors:
ld: 0711-317 ERROR: Undefined symbol: .__atomic_fetch_add_8
ld: 0711-317 ERROR: Undefined symbol: .__atomic_load_8
ld: 0711-317 ERROR: Undefined symbol: .__atomic_fetch_sub_8
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
libstdc++-v3/ChangeLog:
* testsuite/30_threads/semaphore/try_acquire_posix.cc: Add
options for libatomic.
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_posix.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_posix.cc b/libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_posix.cc index 97e386f..2d9ae40 100644 --- a/libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_posix.cc +++ b/libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_posix.cc @@ -19,6 +19,7 @@ // { dg-do run { target c++2a } } // { dg-require-effective-target pthread } // { dg-require-gthreads "" } +// { dg-add-options libatomic } #include <semaphore> #ifdef _GLIBCXX_HAVE_POSIX_SEMAPHORE |