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
69476947 bt != VT_BYTE &&
69486948 bt != VT_SHORT &&
69496949 bt != VT_BOOL &&
6950− bt != VT_ENUM)
6950+ bt != VT_ENUM
6951+#ifdef TCC_TARGET_X86_64
6952+ && bt != VT_LLONG
6953+#endif
6954+ )
69516955 error("bitfields must have scalar type");
69526956 bsize = size * 8;
69536957 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