summaryrefslogtreecommitdiff
path: root/postproc/postprocess_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2001-11-06 19:26:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2001-11-06 19:26:22 +0000
commit3fe8e8f0689e3196101cd6c7bc5be6c423b41a49 (patch)
tree21ac39a4f0e2dc64631dd4fec046af1dccb69d4c /postproc/postprocess_template.c
parentda3b92c877dd48fc46f0f2a0a23624bffd82fe34 (diff)
gcc does optimize writes to non volatile variables away if it didnt know that they were read in between
Originally committed as revision 2751 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/postprocess_template.c')
-rw-r--r--postproc/postprocess_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/postproc/postprocess_template.c b/postproc/postprocess_template.c
index d466b67ee5..902a6298e5 100644
--- a/postproc/postprocess_template.c
+++ b/postproc/postprocess_template.c
@@ -116,8 +116,8 @@ Notes:
#define OPTIONS_ARRAY_SIZE 10
#ifdef HAVE_MMX
-static uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL;
-static uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL;
+static volatile uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL;
+static volatile uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL;
static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL;
static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL;
static uint64_t __attribute__((aligned(8))) w1400= 0x1400140014001400LL;