libstdc++: [_GLIBCXX_INLINE_VERSION] Un-weak handle_contract_violation

libstdc++-v3/ChangeLog:

	* src/experimental/contract.cc
	[_GLIBCXX_INLINE_VERSION](handle_contract_violation): Rework comment.
	Remove weak attribute.
This commit is contained in:
François Dumont 2023-10-30 19:35:35 +01:00
parent 434975cb1b
commit 5ea11700e5

View file

@ -69,8 +69,9 @@ handle_contract_violation (const std::experimental::contract_violation &violatio
}
#if _GLIBCXX_INLINE_VERSION
// Provide symbol without version namespace decoration for gcc.
extern "C" __attribute__ ((weak)) void
// The compiler expects the contract_violation class to be in an unversioned
// namespace, so provide a forwarding function with the expected symbol name.
extern "C" void
_Z25handle_contract_violationRKNSt12experimental18contract_violationE
(const std::experimental::contract_violation &violation)
{ handle_contract_violation(violation); }