This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Effects of Link Time Optimizations in Illegal Libraries
- From: Ian Lance Taylor <iant at google dot com>
- To: Jeffrey Walton <noloader at gmail dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 29 Mar 2013 08:36:23 -0700
- Subject: Re: Effects of Link Time Optimizations in Illegal Libraries
- References: <CAH8yC8nU-FOrmA-kv5uTJLb6ezkWR2VQQcc9yiHJ1srC1qddfw at mail dot gmail dot com>
On Thu, Mar 28, 2013 at 8:45 PM, Jeffrey Walton <noloader@gmail.com> wrote:
>
> 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?
Yes, that is possible.
Ian