From owner-svn-ports-head@FreeBSD.ORG Mon Aug 27 22:18:55 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9C7A1065670; Mon, 27 Aug 2012 22:18:55 +0000 (UTC) (envelope-from nox@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C51E08FC08; Mon, 27 Aug 2012 22:18:55 +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 q7RMItph066426; Mon, 27 Aug 2012 22:18:55 GMT (envelope-from nox@svn.freebsd.org) Received: (from nox@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7RMItT0066425; Mon, 27 Aug 2012 22:18:55 GMT (envelope-from nox@svn.freebsd.org) Message-Id: <201208272218.q7RMItT0066425@svn.freebsd.org> From: Juergen Lock Date: Mon, 27 Aug 2012 22:18:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r303264 - head/multimedia/libxine/files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2012 22:18:56 -0000 Author: nox Date: Mon Aug 27 22:18:55 2012 New Revision: 303264 URL: http://svn.freebsd.org/changeset/ports/303264 Log: (Attempt to) fix build with clang by assuming clang doesn't need a clobber list with __asm__ __volatile__ ("emms"). PR: ports/171119 Submitted by: Dan McGregor Added: head/multimedia/libxine/files/patch-src-post-goom-mmx.h (contents, props changed) Added: head/multimedia/libxine/files/patch-src-post-goom-mmx.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libxine/files/patch-src-post-goom-mmx.h Mon Aug 27 22:18:55 2012 (r303264) @@ -0,0 +1,32 @@ +--- src/post/goom/mmx.h.orig ++++ src/post/goom/mmx.h +@@ -721,17 +721,29 @@ void zoom_filter_xmmx (int prevX, int pr + */ + #ifdef MMX_TRACE + ++#ifdef __clang__ ++#define emms() \ ++ { \ ++ printf("emms()\n"); \ ++ __asm__ __volatile__ ("emms"); \ ++ } ++#else + #define emms() \ + { \ + printf("emms()\n"); \ + __asm__ __volatile__ ("emms" \ + "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)"); \ + } ++#endif + + #else + ++#ifdef __clang__ ++#define emms() __asm__ __volatile__ ("emms") ++#else + #define emms() __asm__ __volatile__ ("emms"::: \ + "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)") ++#endif + + #endif +