summaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-06-02 08:23:45 +0000
committerAlexandre Oliva <aoliva@redhat.com>2009-06-02 08:23:45 +0000
commit3cc052ca78860cd389acd5bc814bc0c3bfa578fd (patch)
treec32b78148c6184852e8202ec2eb3a5b1c4c9941e /Makefile.tpl
parent01fd408740e4fe1df642d1536272295d2ca3c833 (diff)
downloadgdb-3cc052ca78860cd389acd5bc814bc0c3bfa578fd.tar.gz
* Makefile.tpl ([+compare-target+]): Compare all stage
directories, rather than just gcc. * Makefile.in: Rebuilt.
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 e683ebcfb66..5eb377e9e0f 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/* ) \
+ gcc/cc*-checksum$(objext) | ./libgcc/* | ./gcc/ada/*tools/*) \
echo warning: $$file differs ;; \
*) \
echo $$file differs >> .bad_compare ;; \