]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: operator new/delete are transaction_safe
authorJason Merrill <jason@redhat.com>
Mon, 9 Sep 2024 15:20:02 +0000 (11:20 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 23 Sep 2024 14:52:09 +0000 (10:52 -0400)
commit2620e3727d9559ec03f9f967ecb68ed2e076a342
treefa10d2415227c8064ca2648c7abdd5ca23e22401
parent2b7971448f122317ed012586f9f73ccc0537deb2
libstdc++: operator new/delete are transaction_safe

With the changes to #pragma system_header, g++.dg/tm/pr46270.C was
failing because <new> didn't implement the N4514 change to [new.delete] that
says "The library versions of the global allocation and deallocation
functions are declared transaction_safe (8.3.5 dcl.fct)."  We already have
the _GLIBCXX_TXN_SAFE macro, just need to add it.

libstdc++-v3/ChangeLog:

* libsupc++/new: Add _GLIBCXX_TXN_SAFE.
libstdc++-v3/libsupc++/new