This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Allow "make compare" to use "make gnucompare" automatically


For some reason this does not work, it just matches 7,
but I ran `cmp --version 2>&1 |sed -n 's/^.*GNU diffutils[^0-9.]*\([0-9][0-9.]*\).*$/\1/p'`
which works with:
cmp (GNU diffutils) 2.7.2
cmp - GNU diffutils version 2.7
Thanks,
Andrew Pinski


On Sunday, Apr 27, 2003, at 23:26 US/Eastern, Phil Edwards wrote:

On Sun, Apr 27, 2003 at 09:36:11AM -0400, Andrew Pinski wrote:
I have a small problem, with your patch, it does not match the version I
have on my machine (running powerpc-apple-darwin6.5, Mac OS X 10.2.5
with
the December Developer tools), 2.7.


Here is the output of cmp --version:
cmp - GNU diffutils version 2.7

Hm. That seems easy enough to fix. Could you try applying this patch, regenerating gcc/configure, and seeing whether it helps?


Index: configure.in =================================================================== RCS file: /home/pme/Repositories/GCC/gcc/gcc/configure.in,v retrieving revision 1.663 diff -u -3 -r1.663 configure.in --- configure.in 25 Apr 2003 21:15:00 -0000 1.663 +++ configure.in 28 Apr 2003 03:24:16 -0000 @@ -648,7 +648,7 @@ # If GNU cmp is present and recent enough, 'make compare' can be # significantly faster. gcc_AC_CHECK_PROG_VER(gnucmp, cmp, --version, - [(GNU diffutils) \([0-9][0-9.]*\)], [2.[4-9]*]) + [GNU diffutils.*\([0-9][0-9.]*\)], [2.[4-9]*]) if test $gcc_cv_prog_cmp_modern = yes; then make_compare_target=gnucompare else





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]