[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 8 09:00:14 GMT 2022


--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Chris Johns from comment #6)
> It would have to be last or close to it and I have no idea how that could be
> done without additional attributes that are not standard.

That's fine, the C++ runtime doesn't have to be written in standard C++, it's
only compiled by GCC. The init_priority attribute could be used here, but it's
not supported on all targets.

More information about the Gcc-bugs mailing list