Mesa (master): util: (trivial) fix more compile errors in u_cpu_detect (gcc /x86 this time).

Roland Scheidegger sroland at kemper.freedesktop.org
Thu Aug 8 23:28:14 UTC 2013


Module: Mesa
Branch: master
Commit: 8f40fa0e7f47093d6e93ca4dd12569a6f948dae6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f40fa0e7f47093d6e93ca4dd12569a6f948dae6

Author: Dieter Nützel <dieter at nuetzel-hh.de>
Date:   Fri Aug  9 01:23:09 2013 +0200

util: (trivial) fix more compile errors in u_cpu_detect (gcc/x86 this time).

Oops. Should fix https://bugs.freedesktop.org/show_bug.cgi?id=67921

---

 src/gallium/auxiliary/util/u_cpu_detect.c |    2 +-
 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 8567012..3b36993 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




More information about the mesa-commit mailing list