]> gcc.gnu.org Git - 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, 22 Jul 2021 15:34:43 +0000 (16:34 +0100)
commitf2074277aa3ce0848429e34d6149ba26ff3b708e
tree8a420b82e16d8527d7becb19fae25792cc3a75fa
parent3a415b6a93765f29bffd0582a001bf03c4b93f3c
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.

(cherry picked from commit 6c0c7fc6236470a533675cd3cd1ebb1cc3dd112c)
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]
This page took 0.058136 seconds and 5 git commands to generate.