aboutsummaryrefslogtreecommitdiff
path: root/gcc/Makefile.in
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-09-11 03:36:41 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-10 21:36:41 -0600
commit3fb2f4012723a0162164ae416e6b89a61964c1b8 (patch)
tree4d5513933a0821fdbee7cb1c9b70feb22c83e76f /gcc/Makefile.in
parentec20b1b98c22e786fd2ebc08a92ac95c3b5eb88f (diff)
downloadgcc-3fb2f4012723a0162164ae416e6b89a61964c1b8.zip
gcc-3fb2f4012723a0162164ae416e6b89a61964c1b8.tar.gz
gcc-3fb2f4012723a0162164ae416e6b89a61964c1b8.tar.bz2
Makefile (compare): Exit with nonzero status if there are comparison failures.
* Makefile (compare): Exit with nonzero status if there are comparison failures. Note which files failed the comparison test in .bad_compare. For toplevel "make bootstrap". From-SVN: r15400
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r--gcc/Makefile.in17
1 files changed, 13 insertions, 4 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index c1e4e23..481295b 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2589,21 +2589,30 @@ bootstrap3: force
# ./ avoids bug in some versions of tail.
compare: force
+ -rm -f .bad_compare
for file in *$(objext); do \
tail +16c ./$$file > tmp-foo1; \
- tail +16c stage2/$$file > tmp-foo2 2>/dev/null \
- && (cmp tmp-foo1 tmp-foo2 || echo $$file differs) || true; \
+ tail +16c stage2/$$file > tmp-foo2 \
+ && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
done
for dir in tmp-foo $(SUBDIRS); do \
if [ "`echo $$dir/*$(objext)`" != "$$dir/*$(objext)" ] ; then \
for file in $$dir/*$(objext); do \
tail +16c ./$$file > tmp-foo1; \
- tail +16c stage2/$$file > tmp-foo2 2>/dev/null \
- && (cmp tmp-foo1 tmp-foo2 || echo $$file differs) || true; \
+ tail +16c stage2/$$file > tmp-foo2 \
+ && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
done; \
fi; \
done
-rm -f tmp-foo*
+ if [ -f .bad_compare ]; then \
+ echo "Bootstrap comparison failure!"; \
+ cat .bad_compare; \
+ exit 1; \
+ else true; \
+ fi
+
+
# Similar, but compare with stage3 directory
compare3: force