summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_cpu_detect.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-08-09 17:29:52 +0200
committerRoland Scheidegger <sroland@vmware.com>2013-08-09 17:30:13 +0200
commit836098f6b2dd275a2f557780d094cde13471f49d (patch)
treef2e12548a32936a5fc9b0d62db8c1645e6afa50c /src/gallium/auxiliary/util/u_cpu_detect.c
parentc88783047e2a0faa39d6f3ac6fbd3f26a480d5d3 (diff)
downloadexternal_mesa3d-836098f6b2dd275a2f557780d094cde13471f49d.zip
external_mesa3d-836098f6b2dd275a2f557780d094cde13471f49d.tar.gz
external_mesa3d-836098f6b2dd275a2f557780d094cde13471f49d.tar.bz2
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?
Diffstat (limited to 'src/gallium/auxiliary/util/u_cpu_detect.c')
-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 3b36993..87ad780 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