This is the mail archive of the gcc-patches@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: [PATCH] Bump LTO_major_version


> 
> 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


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