Allow long long as a type of bitfields on x86-64.
This commit is contained in:
parent
4a8c2229ce
commit
ae607280c5
1 changed files with 5 additions and 1 deletions
6
tcc.c
6
tcc.c
|
@ -6947,7 +6947,11 @@ static void struct_decl(CType *type, int u)
|
||||||
bt != VT_BYTE &&
|
bt != VT_BYTE &&
|
||||||
bt != VT_SHORT &&
|
bt != VT_SHORT &&
|
||||||
bt != VT_BOOL &&
|
bt != VT_BOOL &&
|
||||||
bt != VT_ENUM)
|
bt != VT_ENUM
|
||||||
|
#ifdef TCC_TARGET_X86_64
|
||||||
|
&& bt != VT_LLONG
|
||||||
|
#endif
|
||||||
|
)
|
||||||
error("bitfields must have scalar type");
|
error("bitfields must have scalar type");
|
||||||
bsize = size * 8;
|
bsize = size * 8;
|
||||||
if (bit_size > bsize) {
|
if (bit_size > bsize) {
|
||||||
|
|
Loading…
Reference in a new issue