libstdc++: Simplify lifetime of eh_globals variable [PR107500]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 3 Nov 2022 11:48:57 +0000 (11:48 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 4 Nov 2022 14:04:53 +0000 (14:04 +0000)
commit418999fe382c608facf57f96b53a9cb12d2fdd20
tree7d693603c6ea58df24186cad0acb80bfdc9407f1
parentf505f37a8e5a7646af4038b5c46f72d8a05dc7f0
libstdc++: Simplify lifetime of eh_globals variable [PR107500]

Since this is a trivial type, we probably don't need to do anything to
ensure it's still accessible after other static dtors.

libstdc++-v3/ChangeLog:

PR libstdc++/107500
* libsupc++/eh_globals.cc (eh_globals): Remove immortalizing
wrapper.
(__cxxabiv1::__cxa_get_globals_fast): Adjust.
(__cxxabiv1::__cxa_get_globals): Adjust.
libstdc++-v3/libsupc++/eh_globals.cc