]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Move atomic functions to libsupc++ [PR 96657]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 14 Apr 2021 19:48:54 +0000 (20:48 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 15 Apr 2021 15:56:44 +0000 (16:56 +0100)
commit6c0c7fc6236470a533675cd3cd1ebb1cc3dd112c
tree9946f22c00ca3efa238fc6176913e15a9a4e9361
parent4d224603d38d3e88f2a3c215b65c12c5f0da1d8d
libstdc++: Move atomic functions to libsupc++ [PR 96657]

The changes for PR libstdc++/64735 mean that libsupc++ function might
now depend on the __exchange_and_add and __atomic_add functions defined
in config/cpu/*/atomicity.h which is not compiled into libsupc++. This
causes a link failure for some targets when trying to use libsupc++
without the rest of libstdc++.

This patch simply moves the definitions of those functions into
libsupc++ so that they are available there.

libstdc++-v3/ChangeLog:

PR libstdc++/96657
* libsupc++/Makefile.am: Add atomicity.cc here.
* src/c++98/Makefile.am: Remove it from here.
* libsupc++/Makefile.in: Regenerate.
* src/c++98/Makefile.in: Regenerate.
* testsuite/18_support/exception_ptr/96657.cc: New test.
libstdc++-v3/libsupc++/Makefile.am
libstdc++-v3/libsupc++/Makefile.in
libstdc++-v3/src/c++98/Makefile.am
libstdc++-v3/src/c++98/Makefile.in
libstdc++-v3/testsuite/18_support/exception_ptr/96657.cc [new file with mode: 0644]