automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Intel compiler v8 fun


From: Ralf Wildenhues
Subject: Re: Intel compiler v8 fun
Date: Wed, 2 Jun 2004 17:05:04 +0200
User-agent: Mutt/1.4.1i

* Ralf Wildenhues wrote on Thu, May 27, 2004 at 10:40:05AM CEST:
> The 8.0 version of the Intel C++ compiler brings yet more joy to
> automake dependency tracking.
>   icc -dryrun 
> will exit with 1 instead of 0 (which 7.1 does).  This makes detecting
> it in tests/defs.in fail.  On the other hand, it will detect and work
> with depmode=gcc (the only thing that fails w/ respect to gcc3 is -MP,
> as already noted in PR416).  Thus, tests/depcomp5.test won't check and
> fail, but skip.

OK, forget this.
  icc -dryrun a.c
succeeds on v7.1 and v8.0.  The file a.c does not need to exist, so this
suits Automake's needs.  Updated patch below (thanks to Intel support).
Note that the grep in the test also accepts depmode gcc3 -- I would not
be surprised if the next version of icc would support -MP.  Although
this in a way makes the test weaker, it does not make the situation
worse than it was before, so please consider applying this patch.

Regards,
Ralf


Index: tests/defs.in
===================================================================
RCS file: /cvs/automake/automake/tests/defs.in,v
retrieving revision 1.29
diff -u -r1.29 defs.in
--- tests/defs.in       23 May 2004 11:04:24 -0000      1.29
+++ tests/defs.in       2 Jun 2004 10:28:10 -0000
@@ -144,9 +144,10 @@
        # There is no way to ask *only* the compiler's version.
        # This tool always want to do something (by default
        # it will try link *nothing* and complain it cannot find
-       # main(); funny).  -dryrun is a workaround.
-       echo "$me: running $CC -V -dryrun"
-       ( $CC -V -dryrun ) || exit 77
+       # main(); funny).  -dryrun (with a non-existing filename given)
+       # is a workaround.
+       echo "$me: running $CC -V -dryrun a.c"
+       ( $CC -V -dryrun a.c ) || exit 77
        ;;
       makedepend)
        echo "$me: running makedepend -f-"
Index: tests/depcomp5.test
===================================================================
RCS file: /cvs/automake/automake/tests/depcomp5.test,v
retrieving revision 1.1
diff -u -r1.1 depcomp5.test
--- tests/depcomp5.test 11 Feb 2003 18:20:55 -0000      1.1
+++ tests/depcomp5.test 2 Jun 2004 10:28:10 -0000
@@ -19,6 +19,7 @@
 # Boston, MA 02111-1307, USA.
 
 # Check icc's dependency mode.
+# Note that version 8 supports gcc depmode completely, so we also allow this.
 
 required='icc'
 . ./defs || exit 1
@@ -59,6 +60,6 @@
 $AUTOMAKE -a
 
 ./configure
-grep 'depmode=icc' Makefile
+grep 'depmode=[ig]cc' Makefile
 $MAKE check
 $MAKE grepdeps




reply via email to

[Prev in Thread] Current Thread [Next in Thread]