Bug 16921. MMX and SSE2 intrinsics not enabled when compiling with Intel's icc
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>
Thu, 31 Jul 2008 17:32:38 +0000 (13:32 -0400)
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>
Thu, 31 Jul 2008 17:32:38 +0000 (13:32 -0400)
Remove GCC specific inline-growth flags, and use __force_inline__ in
pixman-sse2 instead. Based on patch by Matt Turner.

configure.ac
pixman/pixman-sse.c

index 13563ed..702bed0 100644 (file)
@@ -128,10 +128,6 @@ dnl Check for MMX
 
 MMX_CFLAGS="-mmmx -Winline"
 
-if test "x$GCC" = "xyes"; then
-    MMX_CFLAGS="$MMX_CFLAGS --param inline-unit-growth=10000 --param large-function-growth=10000"
-fi
-
 have_mmx_intrinsics=no
 AC_MSG_CHECKING(whether to use MMX intrinsics)
 xserver_save_CFLAGS=$CFLAGS
@@ -213,10 +209,6 @@ dnl Check for SSE2
 
 SSE_CFLAGS="-mmmx -msse2 -Winline"
 
-if test "x$GCC" = "xyes"; then
-    SSE_CFLAGS="$SSE_CFLAGS --param inline-unit-growth=10000 --param large-function-growth=10000 --param  max-inline-insns-single=6000"
-fi
-
 have_sse2_intrinsics=no
 AC_MSG_CHECKING(whether to use SSE2 intrinsics)
 xserver_save_CFLAGS=$CFLAGS
index 7c4d952..bfe0b8a 100644 (file)
 #define inline __forceinline
 #endif
 
+#ifdef __GNUC__
+#    define inline __inline__ __attribute__ ((__always_inline__))
+#endif
+
 /* -------------------------------------------------------------------------------------------------
  * Locals
  */