Commit be9cdd8d authored by michael's avatar michael

gcc does optimize writes to non volatile variables away if it didnt know that...

gcc does optimize writes to non volatile variables away if it didnt know that they were read in between


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@209 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7ed5fd36
...@@ -116,8 +116,8 @@ Notes: ...@@ -116,8 +116,8 @@ Notes:
#define OPTIONS_ARRAY_SIZE 10 #define OPTIONS_ARRAY_SIZE 10
#ifdef HAVE_MMX #ifdef HAVE_MMX
static uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL; static volatile uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL;
static uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL; static volatile uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL;
static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL; static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL;
static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL; static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL;
static uint64_t __attribute__((aligned(8))) w1400= 0x1400140014001400LL; static uint64_t __attribute__((aligned(8))) w1400= 0x1400140014001400LL;
......
...@@ -116,8 +116,8 @@ Notes: ...@@ -116,8 +116,8 @@ Notes:
#define OPTIONS_ARRAY_SIZE 10 #define OPTIONS_ARRAY_SIZE 10
#ifdef HAVE_MMX #ifdef HAVE_MMX
static uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL; static volatile uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL;
static uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL; static volatile uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL;
static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL; static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL;
static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL; static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL;
static uint64_t __attribute__((aligned(8))) w1400= 0x1400140014001400LL; static uint64_t __attribute__((aligned(8))) w1400= 0x1400140014001400LL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment