aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-06-02 08:12:04 +0000
committerAlexandre Oliva <aoliva@redhat.com>2009-06-02 08:12:04 +0000
commit6a8cc9096f851e1dbd57c74a337e822c20b6fb0c (patch)
treeb2c1526d62de23db8d849a6785c2b9455dbdb398 /Makefile.tpl
parent966f9be0d2108c42f39fb77a20abb6a513d74def (diff)
* Makefile.tpl ([+compare-target+]): Compare all stage
directories, rather than just gcc. * Makefile.in: Rebuilt. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@148080 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index f49f3fcb272..ded52c66eac 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1426,15 +1426,16 @@ do-clean: clean-stage[+id+]
: $(MAKE); $(stage); \
rm -f .bad_compare ; \
echo Comparing stages [+prev+] and [+id+] ; \
- cd stage[+id+]-gcc; \
- files=`find . -name "*$(objext)" -print` ; \
- cd .. ; \
+ sed=`echo stage[+id+] | sed 's,^stage,,;s,.,.,g'`; \
+ files=`find stage[+id+]-* -name "*$(objext)" -print | \
+ sed -n s,^stage$$sed-,,p` ; \
for file in $${files} ; do \
- f1=$$r/stage[+prev+]-gcc/$$file; f2=$$r/stage[+id+]-gcc/$$file; \
+ f1=$$r/stage[+prev+]-$$file; f2=$$r/stage[+id+]-$$file; \
+ if test ! -f $$f1; then continue; fi; \
$(do-[+compare-target+]) > /dev/null 2>&1; \
if test $$? -eq 1; then \
case $$file in \
- ./cc*-checksum$(objext) | ./libgcc/* | ./ada/*tools/* ) \
+ gcc/cc*-checksum$(objext) | ./libgcc/* | ./gcc/ada/*tools/*) \
echo warning: $$file differs ;; \
*) \
echo $$file differs >> .bad_compare ;; \