https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78483
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #6) > I don't know the origin of this function, it doesn't seem to be in BSD or > SVR4. https://man7.org/linux/man-pages/man3/on_exit.3.html mentions SunOS 4 (but removed from Solaris/SunOS 5).