svn commit: r242182 - head/contrib/gcc/config/i386
Alexander Kabaev
kan at FreeBSD.org
Sat Oct 27 17:39:37 UTC 2012
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. */
More information about the svn-src-head
mailing list