https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19661
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org --- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am testing a (small) patch for this. Basically DCE can remove the calls to __cxa_atexit .