https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19661
--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The patch is able to handle all 3 testcases here even: For the libstdc++ one: t3.cc.123t.dce2:Deleting : __cxxabiv1::__cxa_atexit (__dt_comp , &global, &__dso_handle);