Date: Mon, 27 Aug 2012 22:18:55 +0000 (UTC) From: Juergen Lock <nox@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r303264 - head/multimedia/libxine/files Message-ID: <201208272218.q7RMItT0066425@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <dan.mcgregor@usask.ca> 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 +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208272218.q7RMItT0066425>