fix assert in __deregister_frame_info_bases
authorThomas Neumann <tneumann@users.sourceforge.net>
Fri, 23 Sep 2022 13:57:13 +0000 (15:57 +0200)
committerThomas Neumann <tneumann@users.sourceforge.net>
Mon, 26 Sep 2022 13:12:02 +0000 (15:12 +0200)
commit386ebf75f4c0342b1f823f4e4aba07abda3288d1
tree8e744f5f80f8a145d540982a56096761d43c7171
parent6904ed80a26f5216aa3b9ce8377fb50307c8e886
fix assert in __deregister_frame_info_bases

When using the atomic fast path deregistering can fail during
program shutdown if the lookup structures are already destroyed.
The assert in __deregister_frame_info_bases takes that into
account. In the non-fast-path case however is not aware of
program shutdown, which caused a compiler error on such platforms.
We fix that by introducing a constant for in_shutdown in
non-fast-path builds.
We also drop the destructor priority, as it is not supported on
all platforms and we no longer rely upon the priority anyway.

libgcc/ChangeLog:
* unwind-dw2-fde.c: Introduce a constant for in_shutdown
for the non-fast-path case. Drop destructor priority.
libgcc/unwind-dw2-fde.c