https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116182
Sam James <sjames at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|bootstrap-lto should set a |bootstrap-lto should set a |small list of -Werror |small list of -Werror |options for LTO correctness |options for LTO correctness |(-Werror=lto-type-mismatch, |(-Werror=lto-type-mismatch, |odr,strict-aliasing) |odr) --- Comment #2 from Sam James <sjames at gcc dot gnu.org> --- The thinking was that the TBAA info is more likely to explode with LTO, but you're right that it's not clear cut, and I don't think I've ever seen it fire on GCC itself. The warning is pretty limited anyway so let's not worry about that one.