[PATCH] Build compiler checksum from object files

Jakub Jelinek jakub@redhat.com
Thu Oct 7 12:33:00 GMT 2010


On Thu, Oct 07, 2010 at 02:26:25PM +0200, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
> 
> Linking the compiler first to generate the compiler checksum
> is extremly costly on a LTO bootstrap build. The link phase
> has to recompile everything.
> 
> Change the checksum computation to run the checksum over the
> object files and a file containing the link options instead.
> This should be about as good and is much faster.
> 
> Based on discussions with various people.
> 
> Passed bootstrap and test suite on x86_64-linux. Ok to commit?

> 2010-10-07  Andi Kleen <ak@linux.intel.com>

Two spaces between name and email address.

> 	* Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
> 	checksum-options.
> 	(checksum-options): Add.
> 	(cc1-dummy): Remove.
> 	(cc1-checksum): Change to run checksum over object files
> 	and options only.
> 	* dummy-checksum.c: Remove.
> 
> gcc/cp
> 
> 2010-10-07  Andi Kleen <ak@linux.intel.com>
> 
> 	* Makefile.in (c++_OBJS): Remove dummy-checksum.o.
> 	(cc1plus-dummy): Remove.
> 	(checksum-options): Add.
> 	(cc1plus-checksum): Change to run checksum over object files
>         and options only.

This is Make-lang.in, not Makefile.in.

> 	* genchecksum.c: Update copyright.
> 	(usage): Allow multiple arguments.
> 	(BLOCKSIZE): Add.
> 	(dosum): Change for incremental checksum. Remove C output.
> 	(main): Iterate over all argument files. Add C output.

This belongs to gcc/ChangeLog, not gcc/cp/ChangeLog.
Furthermore, objc/Make-lang.in and objcp/Make-lang.in probably
need similar changes.

	Jakub



More information about the Gcc-patches mailing list