From owner-svn-src-all@FreeBSD.ORG Sat Oct 27 17:39:37 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2940524A; Sat, 27 Oct 2012 17:39:37 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 09BA38FC0C; Sat, 27 Oct 2012 17:39:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9RHdaYE024527; Sat, 27 Oct 2012 17:39:36 GMT (envelope-from kan@svn.freebsd.org) Received: (from kan@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9RHdaLX024525; Sat, 27 Oct 2012 17:39:36 GMT (envelope-from kan@svn.freebsd.org) Message-Id: <201210271739.q9RHdaLX024525@svn.freebsd.org> From: Alexander Kabaev Date: Sat, 27 Oct 2012 17:39:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242182 - head/contrib/gcc/config/i386 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2012 17:39:37 -0000 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 /* Get _mm_malloc () and _mm_free (). */ +#if __STDC_HOSTED__ #include +#endif /* The Intel API is flexible enough that we must allow aliasing with other vector types, and their scalar components. */