summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-06-15 22:46:01 +0200
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-09-15 11:15:07 -0400
commita06a5b78e2c3bd2e12aff0627a3b65c6fee555a5 (patch)
tree0151fdb752b10a0e6a5de226bd5e95310c1590dc /libavcodec
parent9997a812e76955b16f3a65bfe6bb6cab87e0ee56 (diff)
downloadffmpeg-streaming-a06a5b78e2c3bd2e12aff0627a3b65c6fee555a5.zip
ffmpeg-streaming-a06a5b78e2c3bd2e12aff0627a3b65c6fee555a5.tar.gz
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@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/mathops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h
index 32c8870..a62094e 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"
OpenPOWER on IntegriCloud