aboutsummaryrefslogtreecommitdiff
path: root/lib.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-08-22 15:43:00 -0700
committerJosh Triplett <josh@freedesktop.org>2007-08-22 19:18:13 -0700
commit9bc5a6c798d08fbcb7039eb0fe7ef0e5131dfa26 (patch)
tree172694c0f63bf8d9ab48cead83981cd69c88edbc /lib.c
parentMake cgcc filter out all sparse warning related options (diff)
downloadsparse-9bc5a6c798d08fbcb7039eb0fe7ef0e5131dfa26.tar.gz
sparse-9bc5a6c798d08fbcb7039eb0fe7ef0e5131dfa26.tar.bz2
sparse-9bc5a6c798d08fbcb7039eb0fe7ef0e5131dfa26.zip
add __builtin_labs()
2.6.23-rc3-mm1 has added a user of __builtin_labs(), so add this function to sparse lib.c to avoid the error messages. CHECK kernel/unwind.c kernel/unwind.c:1016:31: error: undefined identifier '__builtin_labs' kernel/unwind.c:1232:25: error: undefined identifier '__builtin_labs' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 9f691b1..22e2fe2 100644
--- a/lib.c
+++ b/lib.c
@@ -590,6 +590,7 @@ void declare_builtin_functions(void)
add_pre_buffer("extern long __builtin_alpha_insql(long, long);\n");
add_pre_buffer("extern long __builtin_alpha_inslh(long, long);\n");
add_pre_buffer("extern long __builtin_alpha_cmpbge(long, long);\n");
+ add_pre_buffer("extern long __builtin_labs(long);\n");
}
void create_builtin_stream(void)