Effects of Link Time Optimizations in Illegal Libraries

Jeffrey Walton noloader@gmail.com
Fri Mar 29 03:45:00 GMT 2013


Hi All,

I know its sounds crazy, but what are the effects of LTO in libraries
with illegal code?

Can a library be tested without -flto and pass its tests, but fail to
operate correctly when used in production due to the optimizer
dropping illegal code?

I also realize that a library should be fixed, but that's another set
of [non-technical] problems....

Jeff



More information about the Gcc-help mailing list