]> 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 20:04:02 +0000 (21:04 +0100)
commitba5e10a8c84f56bb2838adb6d1cc9b74741ac4f1
tree9ce80dc7540a59d6d17317fba2ea79dc36d190a3
parentdf0438f1493c4fe1a7380519d9013148618d9782
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.060909 seconds and 6 git commands to generate.