[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Intel compiler v8 fun
From: |
Ralf Wildenhues |
Subject: |
Intel compiler v8 fun |
Date: |
Thu, 27 May 2004 10:40:05 +0200 |
User-agent: |
Mutt/1.4.1i |
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.
So finally, I suggest this update, where the fix for compiler detection
is a mere hack (trying to differentiate between an exit of 1 and other
possible problems). BTW, I have signed papers.
Regards,
Ralf
2004-05-27 Ralf Wildenhues <address@hidden>
* tests/defs.in, tests/depcomp5.test: Fix check for Intel
Compiler version 8: detection failed, support of gcc depmode
was not accounted for in test.
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 27 May 2004 08:21:43 -0000
@@ -144,9 +144,9 @@
# 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.
+ # main(); funny). -dryrun is a workaround for version 7.x.
echo "$me: running $CC -V -dryrun"
- ( $CC -V -dryrun ) || exit 77
+ ( ( $CC -V -dryrun; if test $? -eq 1; then :; fi ) 2>&1 | grep -i intel
) || 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 27 May 2004 08:21:43 -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Intel compiler v8 fun,
Ralf Wildenhues <=