This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Bump LTO_major_version
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Diego Novillo <dnovillo at google dot com>
- Date: Mon, 29 Nov 2010 15:37:43 +0100
- Subject: Re: [PATCH] Bump LTO_major_version
- References: <alpine.LNX.2.00.1011291513100.23074@zhemvz.fhfr.qr>
>
> This bumps the LTO major version and makes us reject LTO objects built
> with 4.5 instead of crash in the option handling code.
Uh, thanks for looking into this!
>
> I tried to look at incorporating some checksum like we do for PCH, but
> the mechanism can't be easily re-used and I'm somewhat lost how to
> tackle the Makefile dependency issues given that LTO isn't always
> enabled (I thought of doing a lto1-checksum.c similar to the cc1
> and cc1plus ones and just re-use the same checksum in all frontends -
> which makes their link depend on lto1-checksum.c, conditionally).
Perhaps we can take the route of Andi's patch that checksums objects rather
than binaries (he did that to speedup bootstrap-lto). Then we can checksum
libbackend objects only.
Honza