This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] RC5 and Intel's ICC
authorMarcus Holland-Moritz <mhx-perl@gmx.net>
Tue, 23 Sep 2003 15:04:35 +0000 (17:04 +0200)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 23 Sep 2003 12:31:08 +0000 (12:31 +0000)
From: "Marcus Holland-Moritz" <mhx-perl@gmx.net>
Message-ID: <00d101c381d3$3d761fe0$0c2f1fac@R2D2>

(add -we147 to ccflags if cc = ICC so that prototype
 detection works right)

p4raw-id: //depot/perl@21339

hints/linux.sh

index caf380a..bc7d49a 100644 (file)
@@ -67,6 +67,18 @@ case "$usemymalloc" in
 '') usemymalloc='n' ;;
 esac
 
+# Check if we're about to use Intel's ICC compiler
+case "`${cc:-cc} -V 2>&1`" in
+*"Intel(R) C++ Compiler"*)
+    # This is needed for Configure's prototype checks to work correctly
+    ccflags="-we147 $ccflags"
+    # If we're using ICC, we usually want the best performance
+    case "$optimize" in
+    '') optimize='-O3' ;;
+    esac
+    ;;
+esac
+
 case "$optimize" in
 '') # If we have modern enough gcc and well-supported enough CPU,
     # crank up the optimization level.