summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2012-10-27 17:39:36 +0000
committerkan <kan@FreeBSD.org>2012-10-27 17:39:36 +0000
commite35e8bb64d77a50a4bb2126899fcbc13839576dc (patch)
treef943978d3df60bf489ac4c8116c225e27e6a46bd
parent94b3ca6d0016d7bad92eb4697f2b44d9b8f55f09 (diff)
downloadFreeBSD-src-e35e8bb64d77a50a4bb2126899fcbc13839576dc.zip
FreeBSD-src-e35e8bb64d77a50a4bb2126899fcbc13839576dc.tar.gz
Follow clang lead and include mm_malloc.h only in hosted configurations.
This makes the use of intrinsics easier in kernel environment, according to the submitter. Requested by: jmg
-rw-r--r--contrib/gcc/config/i386/xmmintrin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/gcc/config/i386/xmmintrin.h b/contrib/gcc/config/i386/xmmintrin.h
index 35417ec..3eea743 100644
--- a/contrib/gcc/config/i386/xmmintrin.h
+++ b/contrib/gcc/config/i386/xmmintrin.h
@@ -39,7 +39,9 @@
#include <mmintrin.h>
/* Get _mm_malloc () and _mm_free (). */
+#if __STDC_HOSTED__
#include <mm_malloc.h>
+#endif
/* The Intel API is flexible enough that we must allow aliasing with other
vector types, and their scalar components. */
OpenPOWER on IntegriCloud