This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Behaviour of GCC with flto probably bug
- From: Florian Weimer <fweimer at redhat dot com>
- To: "Erotavlas_turbo at libero dot it" <Erotavlas_turbo at libero dot it>, gcc-help at gcc dot gnu dot org
- Date: Sat, 01 Feb 2014 17:24:18 +0100
- Subject: Re: Behaviour of GCC with flto probably bug
- Authentication-results: sourceware.org; auth=none
- References: <1443552043 dot 5919731391271466620 dot JavaMail dot actor at webmail14>
On 02/01/2014 05:17 PM, Erotavlas_turbo@libero.it wrote:
So is not allowed to compile with one version and flto options and link with
an old version?
Yes, this is documented:
The current implementation of LTO makes no attempt to generate
bytecode that is portable between different types of hosts. The
bytecode files are versioned and there is a strict version check,
so bytecode files generated in one version of GCC will not work
with an older/newer version of GCC.
It seems that the version check does not actually work, which is a bug
(please report it in Bugzilla). But LTO is really sensitive to compiler
and library versions, so this will not solve your original problem.
--
Florian Weimer / Red Hat Product Security Team