This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc/Makefile.in targets 'compare' and 'gnucompare' behavedifferently
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>, DJ Delorie <dj at redhat dot com>, <gcc-bugs at gcc dot gnu dot org>, <aoliva at redhat dot com>
- Date: Sat, 26 Oct 2002 11:16:45 +0100 (BST)
- Subject: Re: gcc/Makefile.in targets 'compare' and 'gnucompare' behavedifferently
On Sat, 26 Oct 2002, Phil Edwards wrote:
> I've just finished testing
>
> for file in *.o; do \
> cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1; \
> test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
> done
>
> and this performs correctly when a file is missing from the stage*
> subdirectory. It also maintains the low overhead; 'make gnucompare'
> continues to take about one-third to one-fourth the time of 'make compare'.
It would be nice for the gnucompare method to be used automatically (based
on an autoconf test for cmp --ignore-initial) when GNU cmp is installed.
Likewise corresponding cmp features on other systems.
http://gcc.gnu.org/ml/gcc/2001-05/msg00235.html
--
Joseph S. Myers
jsm28@cam.ac.uk