* [committed] libstdc++: Add options for libatomic to test
@ 2021-04-22 15:09 Jonathan Wakely
2021-04-23 6:47 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Wakely @ 2021-04-22 15:09 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 636 bytes --]
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.
Tested powerpc64le-linux and powerpc-aix. Committed to trunk.
I'd like to backport this to gcc-11 too.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1330 bytes --]
commit 58871c03318e080962f022f5d77db3c4fde3e351
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Apr 22 15:51:08 2021
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.
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 97e386f7b76..2d9ae40db72 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [committed] libstdc++: Add options for libatomic to test
2021-04-22 15:09 [committed] libstdc++: Add options for libatomic to test Jonathan Wakely
@ 2021-04-23 6:47 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2021-04-23 6:47 UTC (permalink / raw)
To: Jonathan Wakely; +Cc: libstdc++, GCC Patches
On Thu, Apr 22, 2021 at 6:56 PM Jonathan Wakely via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> 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.
>
> Tested powerpc64le-linux and powerpc-aix. Committed to trunk.
>
> I'd like to backport this to gcc-11 too.
Fine with me.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-23 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 15:09 [committed] libstdc++: Add options for libatomic to test Jonathan Wakely
2021-04-23 6:47 ` Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).