From 39d7742479ea91ec984ccf3daa6aff2571a10fb0 Mon Sep 17 00:00:00 2001 From: nox Date: Mon, 27 Aug 2012 22:18:55 +0000 Subject: (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 --- multimedia/libxine/files/patch-src-post-goom-mmx.h | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 multimedia/libxine/files/patch-src-post-goom-mmx.h (limited to 'multimedia') diff --git a/multimedia/libxine/files/patch-src-post-goom-mmx.h b/multimedia/libxine/files/patch-src-post-goom-mmx.h new file mode 100644 index 000000000000..091d41caeeae --- /dev/null +++ b/multimedia/libxine/files/patch-src-post-goom-mmx.h @@ -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 + -- cgit