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' behave differently
- From: DJ Delorie <dj at redhat dot com>
- To: phil at jaj dot com
- Cc: gcc-bugs at gcc dot gnu dot org, aoliva at redhat dot com
- Date: Fri, 25 Oct 2002 18:57:07 -0400
- Subject: Re: gcc/Makefile.in targets 'compare' and 'gnucompare' behave differently
- References: <20021025184727.A1522@disaster.jaj.com>
> for file in *.o; do \
> test -f stage$stage/$file && (cmp --ignor...bad_compare) || true; \
> done
That adds back in some of the overhead, unless we assume that the
shell is running the test command internally. Otherwise, I can't
think of a better way, unless we can check for cmp's exit code being
exactly 1 (it returns 2 if one of the files is missing).