summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid S. Miller <[email protected]>2009-02-26 18:59:04 -0700
committerBrian Paul <[email protected]>2009-02-26 18:59:58 -0700
commit18e01393b83b2a1b78a0c0cee7fd3713cb3bc373 (patch)
tree5bc803c8816b7897736207a0df6616889832fcc4 /src
parent7d399bf0626a55fa2a124dcf09135464cc87baa1 (diff)
mesa: Fix DEBUG_MATH build on sparc.
Need to use '__asm__' instead of plain 'asm'. math/m_debug_clip.c: In function ‘test_cliptest_function’: math/m_debug_clip.c:253: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’ math/m_debug_clip.c:253: warning: implicit declaration of function ‘asm’ Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/math/m_debug_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/math/m_debug_util.h b/src/mesa/math/m_debug_util.h
index 7abe6f2565a..2e67db8e55d 100644
--- a/src/mesa/math/m_debug_util.h
+++ b/src/mesa/math/m_debug_util.h
@@ -231,8 +231,8 @@ extern char *mesa_profile;
#define BEGIN_RACE(x) \
x = LONG_MAX; \
for (cycle_i = 0; cycle_i <10; cycle_i++) { \
- register long cycle_tmp1 asm("l0"); \
- register long cycle_tmp2 asm("l1"); \
+ register long cycle_tmp1 __asm__("l0"); \
+ register long cycle_tmp2 __asm__("l1"); \
/* rd %tick, %l0 */ \
__asm__ __volatile__ (".word 0xa1410000" : "=r" (cycle_tmp1)); /* save timestamp */