diff options
author | Richard Biener <rguenther@suse.de> | 2016-05-03 08:14:27 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-05-03 08:14:27 +0000 |
commit | fb2647aaf55b453b37badfd40c14c59486a74584 (patch) | |
tree | 4b2ab3314bf100c729bbc5b42e1b2e540e4ac79b /gcc/c/Make-lang.in | |
parent | d0ce23266b2e9175268910f620e799b0edb127c1 (diff) | |
download | gcc-fb2647aaf55b453b37badfd40c14c59486a74584.zip gcc-fb2647aaf55b453b37badfd40c14c59486a74584.tar.gz gcc-fb2647aaf55b453b37badfd40c14c59486a74584.tar.bz2 |
Make-lang.in (cc1-checksum.c): For stage-final re-use the checksum from the previous stage.
2016-05-03 Richard Biener <rguenther@suse.de>
c/
* Make-lang.in (cc1-checksum.c): For stage-final re-use
the checksum from the previous stage.
cp/
* Make-lang.in (cc1plus-checksum.c): For stage-final re-use
the checksum from the previous stage.
From-SVN: r235804
Diffstat (limited to 'gcc/c/Make-lang.in')
-rw-r--r-- | gcc/c/Make-lang.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/c/Make-lang.in b/gcc/c/Make-lang.in index 8525707..34c8b0e 100644 --- a/gcc/c/Make-lang.in +++ b/gcc/c/Make-lang.in @@ -61,11 +61,18 @@ c_OBJS = $(C_OBJS) cc1-checksum.o c/gccspec.o c-warn = $(STRICT_WARN) # compute checksum over all object files and the options +# re-use the checksum from the prev-final stage so it passes +# the bootstrap comparison and allows comparing of the cc1 binary cc1-checksum.c : build/genchecksum$(build_exeext) checksum-options \ $(C_OBJS) $(BACKEND) $(LIBDEPS) - build/genchecksum$(build_exeext) $(C_OBJS) $(BACKEND) $(LIBDEPS) \ + if [ -f ../stage_final ] \ + && cmp -s ../stage_current ../stage_final; then \ + cp ../prev-gcc/cc1-checksum.c cc1-checksum.c; \ + else \ + build/genchecksum$(build_exeext) $(C_OBJS) $(BACKEND) $(LIBDEPS) \ checksum-options > cc1-checksum.c.tmp && \ - $(srcdir)/../move-if-change cc1-checksum.c.tmp cc1-checksum.c + $(srcdir)/../move-if-change cc1-checksum.c.tmp cc1-checksum.c; \ + fi cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS) +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) \ |