diff options
| author | Shinichiro Hamaji <shinichiro.hamaji _at_ gmail.com> | 2009-03-14 22:21:58 +0900 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:07:08 +0200 |
| commit | ae607280c5cb9746bdbcfc6916ffeb26ec0bfe8b (patch) | |
| tree | 5f5b24b2d6091ab39cca2c2021577d6507d467ca | |
| parent | 4a8c2229ce1589ac68d0f447561947daf20441d3 (diff) | |
| download | tinycc-ae607280c5cb9746bdbcfc6916ffeb26ec0bfe8b.tar.gz tinycc-ae607280c5cb9746bdbcfc6916ffeb26ec0bfe8b.tar.bz2 | |
Allow long long as a type of bitfields on x86-64.
| -rw-r--r-- | tcc.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) { |
