diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2012-10-27 17:39:36 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2012-10-27 17:39:36 +0000 |
commit | 31e8efde08a9ac4f637a017e54f00f1b37f92e61 (patch) | |
tree | f943978d3df60bf489ac4c8116c225e27e6a46bd /contrib | |
parent | 274b8658fcf2d803f8b1205650e7cb6205066045 (diff) | |
download | src-31e8efde08a9ac4f637a017e54f00f1b37f92e61.tar.gz src-31e8efde08a9ac4f637a017e54f00f1b37f92e61.zip |
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
Notes
Notes:
svn path=/head/; revision=242182
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gcc/config/i386/xmmintrin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/gcc/config/i386/xmmintrin.h b/contrib/gcc/config/i386/xmmintrin.h index 35417ec9b6c3..3eea743c68c6 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. */ |