gcc/Makefile.in targets 'compare' and 'gnucompare' behave differently

Joseph S. Myers jsm28@cam.ac.uk
Sat Oct 26 03:59:00 GMT 2002

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.


Joseph S. Myers

More information about the Gcc-bugs mailing list