From: José Fonseca Date: Mon, 13 Sep 2010 08:24:09 +0000 (+0100) Subject: llvmpipe: use gcc asm only with gcc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b97c75e6a3a95be503f0509be0791a21b4d0f8d8;p=mesa.git llvmpipe: use gcc asm only with gcc --- diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c index 2cd10ed4201..f0c74f8040a 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c @@ -445,7 +445,7 @@ do_triangle_ccw(struct lp_setup_context *setup, * * Undefined if no zero exists, so code should check against ~0UL first. */ -#if defined(PIPE_ARCH_X86) +#if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86) static inline unsigned fls(unsigned word) { asm("bsr %1,%0"