Fix bootstrap2 breakage due to re-use of obj-c checksum
gcc/objc: 2021-06-08 Bernd Edlinger <bernd.edlinger@hotmail.de> * Make-lang.in (cc1-obj-checksum.c): Check previous stage checksum exists. gcc/objcp: 2021-06-08 Bernd Edlinger <bernd.edlinger@hotmail.de> * Make-lang.in (cc1objplus-checksum.c): Check previous stage checksum exists.
This commit is contained in:
parent
924e02553a
commit
40917137b6
2 changed files with 4 additions and 2 deletions
|
@ -63,7 +63,8 @@ objc_OBJS = $(OBJC_OBJS) cc1obj-checksum.o
|
|||
cc1obj-checksum.c : build/genchecksum$(build_exeext) checksum-options \
|
||||
$(OBJC_OBJS) $(C_AND_OBJC_OBJS) $(BACKEND) $(LIBDEPS)
|
||||
if [ -f ../stage_final ] \
|
||||
&& cmp -s ../stage_current ../stage_final; then \
|
||||
&& cmp -s ../stage_current ../stage_final \
|
||||
&& [ -f ../prev-gcc/$@ ]; then \
|
||||
cp ../prev-gcc/$@ $@; \
|
||||
else \
|
||||
build/genchecksum$(build_exeext) $(OBJC_OBJS) $(C_AND_OBJC_OBJS) \
|
||||
|
|
|
@ -66,7 +66,8 @@ obj-c++_OBJS = $(OBJCXX_OBJS) cc1objplus-checksum.o
|
|||
cc1objplus-checksum.c : build/genchecksum$(build_exeext) checksum-options \
|
||||
$(OBJCXX_OBJS) $(BACKEND) $(CODYLIB) $(LIBDEPS)
|
||||
if [ -f ../stage_final ] \
|
||||
&& cmp -s ../stage_current ../stage_final; then \
|
||||
&& cmp -s ../stage_current ../stage_final \
|
||||
&& [ -f ../prev-gcc/$@ ]; then \
|
||||
cp ../prev-gcc/$@ $@; \
|
||||
else \
|
||||
build/genchecksum$(build_exeext) $(OBJCXX_OBJS) $(BACKEND) \
|
||||
|
|
Loading…
Add table
Reference in a new issue