aboutsummaryrefslogtreecommitdiff
path: root/lib.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2005-11-21 17:02:25 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-22 08:43:02 -0800
commit2cf627a8ad3889f550ad2d178c8f90bb0a7cd72c (patch)
tree3b36d53298397cbb8c4532a2951a0d64ed4ff50d /lib.c
parentWhen taking the address of a symbol, fix up the pointer type (diff)
downloadsparse-2cf627a8ad3889f550ad2d178c8f90bb0a7cd72c.tar.gz
sparse-2cf627a8ad3889f550ad2d178c8f90bb0a7cd72c.tar.bz2
sparse-2cf627a8ad3889f550ad2d178c8f90bb0a7cd72c.zip
[PATCH] missing builtin - memcmp()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 6044cbb..8828e37 100644
--- a/lib.c
+++ b/lib.c
@@ -449,6 +449,7 @@ void declare_builtin_functions(void)
/* Gaah. gcc knows tons of builtin <string.h> functions */
add_pre_buffer("extern void *__builtin_memcpy(void *, const void *, __SIZE_TYPE__);\n");
add_pre_buffer("extern void *__builtin_memset(void *, int, __SIZE_TYPE__);\n");
+ add_pre_buffer("extern int __builtin_memcmp(const void *, const void *, __SIZE_TYPE__);\n");
add_pre_buffer("extern int __builtin_strcmp(const char *, const char *);\n");
add_pre_buffer("extern char *__builtin_strchr(const char *, int);\n");
add_pre_buffer("extern char *__builtin_strcpy(char *, const char *);\n");