Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2012 17:39:36 +0000 (UTC)
From:      Alexander Kabaev <kan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242182 - head/contrib/gcc/config/i386
Message-ID:  <201210271739.q9RHdaLX024525@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210271739.q9RHdaLX024525>