https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108630

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #5)
> LTO will almost certainly break src/c++98/globals_io.cc so I don'tthink we
> can support building libstdc++ with LTO for now.

And would probably break the fake dependency we create in std::thread creation,
where we pass &pthread_create to an extern function inside the library, which
doesn't use it. With LTO the fact it's unused would be visible, and the
link-time dependency would be removed.

Reply via email to