projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f5032e
)
rtasm: add dummy return statement to silence MSVC warning
author
Brian Paul
<brianp@vmware.com>
Wed, 16 Feb 2011 21:17:41 +0000
(14:17 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 17 Feb 2011 00:07:02 +0000
(17:07 -0700)
And use assert(0) instead of abort() to be consistent with rest
of Gallium.
src/gallium/auxiliary/rtasm/rtasm_x86sse.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
index 75b0f6a68ea555da2cd6ca39539e4621e826e454..b03dd3a0cf88433bd58d8e4deae6b8e2c6d6a370 100644
(file)
--- a/
src/gallium/auxiliary/rtasm/rtasm_x86sse.c
+++ b/
src/gallium/auxiliary/rtasm/rtasm_x86sse.c
@@
-2132,7
+2132,8
@@
struct x86_reg x86_fn_arg( struct x86_function *p,
return x86_make_disp(x86_make_reg(file_REG32, reg_SP),
p->stack_offset + arg * 4); /* ??? */
default:
- abort();
+ assert(0 && "Unexpected x86 target ABI in x86_fn_arg");
+ return x86_make_reg(file_REG32, reg_CX); /* not used / silence warning */
}
}