diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2005-11-21 17:02:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-22 08:43:02 -0800 |
commit | 2cf627a8ad3889f550ad2d178c8f90bb0a7cd72c (patch) | |
tree | 3b36d53298397cbb8c4532a2951a0d64ed4ff50d /lib.c | |
parent | When taking the address of a symbol, fix up the pointer type (diff) | |
download | sparse-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); |