aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji _at_ gmail.com>2009-03-14 22:21:58 +0900
committergrischka <grischka>2009-04-18 15:07:08 +0200
commitae607280c5cb9746bdbcfc6916ffeb26ec0bfe8b (patch)
tree5f5b24b2d6091ab39cca2c2021577d6507d467ca
parent4a8c2229ce1589ac68d0f447561947daf20441d3 (diff)
downloadtinycc-ae607280c5cb9746bdbcfc6916ffeb26ec0bfe8b.tar.gz
tinycc-ae607280c5cb9746bdbcfc6916ffeb26ec0bfe8b.tar.bz2
Allow long long as a type of bitfields on x86-64.
-rw-r--r--tcc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tcc.c b/tcc.c
index f581f42..b420799 100644
--- a/tcc.c
+++ b/tcc.c
@@ -6947,7 +6947,11 @@ static void struct_decl(CType *type, int u)
bt != VT_BYTE &&
bt != VT_SHORT &&
bt != VT_BOOL &&
- bt != VT_ENUM)
+ bt != VT_ENUM
+#ifdef TCC_TARGET_X86_64
+ && bt != VT_LLONG
+#endif
+ )
error("bitfields must have scalar type");
bsize = size * 8;
if (bit_size > bsize) {