diff options
author | Pekka Enberg <penberg@kernel.org> | 2011-12-21 22:24:46 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2011-12-21 22:24:46 +0200 |
commit | 65be24b8ddf54164ff25febfd3d5f9c26ae3877d (patch) | |
tree | 2c5735ef1294dd2803337c79720d9eaa7942e22f | |
parent | d3a751c556684f82af86dbedfca0997908961715 (diff) | |
download | sparse-65be24b8ddf54164ff25febfd3d5f9c26ae3877d.tar.gz |
Revert "sparse: Bump up sizeof(_Bool) to 8 bits"
This reverts commit 2ded1e7406914eda77abde035416140849d76f68. It's no longer
needed as LLVM backend supports 1-bit integers.
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>
-rw-r--r-- | target.c | 2 | ||||
-rw-r--r-- | validation/sizeof-bool.c | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -14,7 +14,7 @@ int max_alignment = 16; /* * Integer data types */ -int bits_in_bool = 8; +int bits_in_bool = 1; int bits_in_char = 8; int bits_in_short = 16; int bits_in_int = 32; diff --git a/validation/sizeof-bool.c b/validation/sizeof-bool.c index 71ae1bce..6c68748a 100644 --- a/validation/sizeof-bool.c +++ b/validation/sizeof-bool.c @@ -4,5 +4,9 @@ static int a(void) } /* * check-name: sizeof(_Bool) is valid - * check-description: 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 */ |