aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorPekka Enberg <penberg@kernel.org>2011-09-26 17:47:23 +0300
committerPekka Enberg <penberg@kernel.org>2011-09-28 17:11:35 +0300
commit2ded1e7406914eda77abde035416140849d76f68 (patch)
treea6d9898f865de259e321e7c407ddae491c5696e8 /validation
parente577957155d2022e6636553421fba3a6dcb358b2 (diff)
downloadsparse-dev-2ded1e7406914eda77abde035416140849d76f68.tar.gz
sparse: Bump up sizeof(_Bool) to 8 bits
We need sizeof(_Bool) to be one byte to generate code for boolean expressions in the LLVM backend. Cc: Christopher Li <sparse@chrisli.org> Cc: Jeff Garzik <jgarzik@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'validation')
-rw-r--r--validation/sizeof-bool.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/validation/sizeof-bool.c b/validation/sizeof-bool.c
index 6c68748a..71ae1bce 100644
--- a/validation/sizeof-bool.c
+++ b/validation/sizeof-bool.c
@@ -4,9 +4,5 @@ static int a(void)
}
/*
* check-name: sizeof(_Bool) is valid
- * check-description: sizeof(_Bool) was rejected because _Bool is not an even
- * number of bytes
- * check-error-start
-sizeof-bool.c:3:16: warning: expression using sizeof bool
- * check-error-end
+ * check-description: sizeof(_Bool) is valid
*/