You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to compile with the following flags for LTO: -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
The -Werror's here are very important, because LTO can optimize based on the assumption that certain language requirements are met, and if they aren't met, a miscompilation happens.
Actually, strict-aliasing can cause issues even without LTO ;) but LTO does tend to make them worse.
Description
Steps to reproduce the issue
I tried to compile with the following flags for LTO:
-flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
The -Werror's here are very important, because LTO can optimize based on the assumption that certain language requirements are met, and if they aren't met, a miscompilation happens.
Actually, strict-aliasing can cause issues even without LTO ;) but LTO does tend to make them worse.
Downstream report: https://bugs.gentoo.org/861581
Full build logs: build.log
Versions
Operating system: Gentoo Linux
Build environment: GCC
rtrlib: 0.8.0
The text was updated successfully, but these errors were encountered: