aboutsummaryrefslogtreecommitdiff
path: root/lib.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-10-09 12:59:31 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2007-07-28 18:34:22 -0400
commitb47634e8aef5880528dd50baa53c93cd8e810ec2 (patch)
tree1799b6c0e8ae06752e31e1d1b23c5d567141373a /lib.c
parentMake "Initializer entry defined twice" a warning, not an error (diff)
downloadsparse-b47634e8aef5880528dd50baa53c93cd8e810ec2.tar.gz
sparse-b47634e8aef5880528dd50baa53c93cd8e810ec2.tar.bz2
sparse-b47634e8aef5880528dd50baa53c93cd8e810ec2.zip
[PATCH] add __builtin_strlen()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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 2d90909..9f691b1 100644
--- a/lib.c
+++ b/lib.c
@@ -571,6 +571,7 @@ void declare_builtin_functions(void)
add_pre_buffer("extern __SIZE_TYPE__ __builtin_strspn(const char *, const char *);\n");
add_pre_buffer("extern __SIZE_TYPE__ __builtin_strcspn(const char *, const char *);\n");
add_pre_buffer("extern char * __builtin_strpbrk(const char *, const char *);\n");
+ add_pre_buffer("extern __SIZE_TYPE__ __builtin_strlen(const char *);\n");
/* And some random ones.. */
add_pre_buffer("extern void *__builtin_return_address(unsigned int);\n");