This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Effects of Link Time Optimizations in Illegal Libraries
- From: Jeffrey Walton <noloader at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 28 Mar 2013 23:45:04 -0400
- Subject: Effects of Link Time Optimizations in Illegal Libraries
- Reply-to: noloader at gmail dot com
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