This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Behaviour of GCC with flto probably bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]