[Bug other/116182] bootstrap-lto should set a small list of -Werror options for LTO correctness (-Werror=lto-type-mismatch,odr)
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 13 09:35:50 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116182
--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> I don't think -Wstrict-aliasing fires after frontends finish so it's not
> special with LTO. I do agree with -Wodr and -Wlto-type-mismatch though.
Maybe there should be a separate -Wlto-strict-aliasing that is actually special
with LTO, then?
More information about the Gcc-bugs
mailing list