[MOAB-dev] r3080 - MOAB/trunk/m4

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Jul 30 15:02:35 CDT 2009


Author: kraftche
Date: 2009-07-30 15:02:35 -0500 (Thu, 30 Jul 2009)
New Revision: 3080

Modified:
   MOAB/trunk/m4/compiler.m4
Log:
suppress excessive noise from intel compiler

Modified: MOAB/trunk/m4/compiler.m4
===================================================================
--- MOAB/trunk/m4/compiler.m4	2009-07-30 19:11:03 UTC (rev 3079)
+++ MOAB/trunk/m4/compiler.m4	2009-07-30 20:02:35 UTC (rev 3080)
@@ -255,6 +255,8 @@
 # Autoconf does G++ for us
 if test x$GXX = xyes; then
   cxx_compiler=GNU
+  # Intel claims to be GCC, check for it here
+  SNL_TRY_COMPILER_DEFINE([__INTEL_COMPILER],[cxx_compiler=Intel])
 # Search for other compiler types
 # For efficiency, limit checks to relevant OSs
 else
@@ -326,6 +328,11 @@
   GNU:*)
     SNL_CXX_SPECIAL="$EXTRA_GNU_FLAGS"
     ;;
+  Intel:*)
+    SNL_CXX_32BIT=-m32
+    SNL_CXX_64BIT=-m64
+    SNL_CXX_SPECIAL="$EXTRA_GNU_FLAGS -wd981 -wd383"
+    ;;
   VisualAge:*)
     SNL_CXX_32BIT=-q32
     SNL_CXX_64BIT=-q64
@@ -381,6 +388,8 @@
 # Autoconf does gcc for us
 if test x$GCC = xyes; then
   cc_compiler=GNU
+  # Intel claims to be GCC, check for it here
+  SNL_TRY_COMPILER_DEFINE([__INTEL_COMPILER],[cc_compiler=Intel])
 # Search for other compiler types
 # For efficiency, limit checks to relevant OSs
 else
@@ -442,6 +451,11 @@
     SNL_CC_64BIT=-m64
     SNL_CC_SPECIAL="$EXTRA_GNU_FLAGS"
     ;;
+  Intel:*)
+    SNL_CC_32BIT=-m32
+    SNL_CC_64BIT=-m64
+    SNL_CC_SPECIAL="$EXTRA_GNU_FLAGS -wd981 -wd383"
+    ;;
   GNU:mips*)
     SNL_CC_32BIT="-mips32 -mabi=32"
     SNL_CC_64BIT="-mips64 -mabi=64"



More information about the moab-dev mailing list