History

Allow long long as a type of bitfields on x86-64.

Shinichiro Hamaji committed 17 years ago

Commit ae607281 parent 4a8c2221 file · +5 −1Browse files

Unified · Split

tcc.c+5−1
@@ -6947,7 +6947,11 @@ static void struct_decl(CType *type, int u) · 6946 unmodified lines
6947 bt != VT_BYTE && 6947 bt != VT_BYTE &&
6948 bt != VT_SHORT &&6948 bt != VT_SHORT &&
6949 bt != VT_BOOL &&6949 bt != VT_BOOL &&
6950 bt != VT_ENUM)6950 bt != VT_ENUM
6951#ifdef TCC_TARGET_X86_64
6952 && bt != VT_LLONG
6953#endif
6954 )
6951 error("bitfields must have scalar type");6955 error("bitfields must have scalar type");
6952 bsize = size * 8;6956 bsize = size * 8;
6953 if (bit_size > bsize) {6957 if (bit_size > bsize) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t