Author: kan
Date: Sat Oct 27 17:39:36 2012
New Revision: 242182
URL: http://svn.freebsd.org/changeset/base/242182
Log:
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
Modified:
head/contrib/gcc/config/i386/xmmintrin.h
Modified: head/contrib/gcc/config/i386/xmmintrin.h
==============================================================================
--- head/contrib/gcc/config/i386/xmmintrin.h Sat Oct 27 17:06:26 2012
(r242181)
+++ head/contrib/gcc/config/i386/xmmintrin.h Sat Oct 27 17:39:36 2012
(r242182)
@@ -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. */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"