[FFmpeg-cvslog] mathops/x86: work around inline asm miscompilation with GCC 4.8.1

Hendrik Leppkes git at videolan.org
Mon Jun 24 08:52:44 CEST 2013


ffmpeg | branch: release/1.2 | Hendrik Leppkes <h.leppkes at gmail.com> | Sat Jun 15 22:46:01 2013 +0200| [1065d4197e979f5b37d5232e90eeb1f35d994ccd] | committer: Carl Eugen Hoyos

mathops/x86: work around inline asm miscompilation with GCC 4.8.1

The volatile is not required here, and prevents a miscompilation with GCC
4.8.1 when building on x86 with --cpu=i686

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 659df32a9d8984081ccd54adc3aee7daeb33388d)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1065d4197e979f5b37d5232e90eeb1f35d994ccd
---

 libavcodec/x86/mathops.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h
index 79e29e6..76ea131 100644
--- a/libavcodec/x86/mathops.h
+++ b/libavcodec/x86/mathops.h
@@ -74,7 +74,7 @@ static av_always_inline av_const int64_t MUL64(int a, int b)
 static inline av_const int mid_pred(int a, int b, int c)
 {
     int i=b;
-    __asm__ volatile(
+    __asm__ (
         "cmp    %2, %1 \n\t"
         "cmovg  %1, %0 \n\t"
         "cmovg  %2, %1 \n\t"



More information about the ffmpeg-cvslog mailing list