diff --git a/libgcc/unwind-dw2-fde.c b/libgcc/unwind-dw2-fde.c --- a/libgcc/unwind-dw2-fde.c +++ b/libgcc/unwind-dw2-fde.c @@ -47,11 +47,17 @@ typedef __UINTPTR_TYPE__ uintptr_type; #ifdef ATOMIC_FDE_FAST_PATH #include "unwind-dw2-btree.h" +#ifdef HAVE_INIT_PRIORITY +#define DESTRUCTOR_PRIORITY (110) +#else +#define DESTRUCTOR_PRIORITY +#endif + static struct btree registered_frames; static bool in_shutdown; static void -release_registered_frames (void) __attribute__ ((destructor (110))); +release_registered_frames (void) __attribute__ ((destructor DESTRUCTOR_PRIORITY)); static void release_registered_frames (void) {