diff options
| author | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-29 21:37:13 +0000 |
|---|---|---|
| committer | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-29 21:37:13 +0000 |
| commit | 4121f044687e0e114e5111d2d7ba5f8364f0eeef (patch) | |
| tree | 4da43448ee813775875fe305c5f8d7e56fc260b0 | |
| parent | c2f63288bf872e277529c302d6b0a59b7de75874 (diff) | |
| download | ppe42-gcc-4121f044687e0e114e5111d2d7ba5f8364f0eeef.tar.gz ppe42-gcc-4121f044687e0e114e5111d2d7ba5f8364f0eeef.zip | |
2002-10-29 Phil Edwards <pme@gcc.gnu.org>
* Makefile.in (gnucompare*): Only record bad comparisons
if there really was a bad comparison.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58635 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/Makefile.in | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c7837fe89d..edd8a7eb247 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-29 Phil Edwards <pme@gcc.gnu.org> + + * Makefile.in (gnucompare*): Only record bad comparisons + if there really was a bad comparison. + Tue Oct 29 19:32:16 CET 2002 Jan Hubicka <jh@suse.cz> * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H' diff --git a/gcc/Makefile.in b/gcc/Makefile.in index e97c3025a42..8f2256c1c85 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -3490,18 +3490,21 @@ compare compare3 compare4 compare-lean compare3-lean compare4-lean: force # Compare the object files in the current directory with those in the # stage2 directory. Use gnu cmp (diffutils v2.4 or later) to avoid # running tail and the overhead of twice copying each object file. - +# An exit status of 1 is precisely the result we're looking for (other +# values mean other problems). gnucompare gnucompare3 gnucompare4 gnucompare-lean gnucompare3-lean gnucompare4-lean: force -rm -f .bad_compare case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \ for file in *$(objext); do \ - (cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \ + cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1; \ + test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \ done case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \ for dir in tmp-foo intl $(SUBDIRS); do \ if [ "`echo $$dir/*$(objext)`" != "$$dir/*$(objext)" ] ; then \ for file in $$dir/*$(objext); do \ - (cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \ + cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1; \ + test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \ done; \ else true; fi; \ done |

