summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2013-08-09 17:29:52 +0200
committerRoland Scheidegger <[email protected]>2013-08-09 17:30:13 +0200
commit836098f6b2dd275a2f557780d094cde13471f49d (patch)
treef2e12548a32936a5fc9b0d62db8c1645e6afa50c
parentc88783047e2a0faa39d6f3ac6fbd3f26a480d5d3 (diff)
util: (trivial) fix asm input/output list for fxsave
Otherwise gcc might do very unsafe optimizations, spotted by Uros Bizjak. Hopefully this time it's finally right?
-rw-r--r--src/gallium/auxiliary/util/u_cpu_detect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_cpu_detect.c b/src/gallium/auxiliary/util/u_cpu_detect.c
index 3b36993dcc1..87ad780951e 100644
--- a/src/gallium/auxiliary/util/u_cpu_detect.c
+++ b/src/gallium/auxiliary/util/u_cpu_detect.c
@@ -244,7 +244,7 @@ static INLINE boolean sse2_has_daz(void)
fxarea.mxcsr_mask = 0;
#if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO))
- __asm __volatile ("fxsave %0" :: "m" (fxarea));
+ __asm __volatile ("fxsave %0" : "+m" (fxarea));
#elif (defined(PIPE_CC_MSVC) || defined(PIPE_CC_ICL))
_fxsave(&fxarea);
#endif