Unified · Split
| @@ -4662,6 +4662,8 @@ static int parse_btype(CType *type, AttributeDef *ad, int ignore_label) · 4661 unmodified lines | ||
| 4662 | 4662 | if (type1.ref) |
| 4663 | 4663 | sym_to_attr(ad, type1.ref); |
| 4664 | 4664 | goto basic_type2; |
| 4665 | + case TOK_THREAD_LOCAL: | |
| 4666 | + tcc_error("_Thread_local is not implemented"); | |
| 4665 | 4667 | default: |
| 4666 | 4668 | if (typespec_found) |
| 4667 | 4669 | goto the_end; |
| @@ -38,6 +38,7 @@ · 37 unmodified lines | ||
| 38 | 38 | DEF(TOK_RESTRICT2, "__restrict") |
| 39 | 39 | DEF(TOK_RESTRICT3, "__restrict__") |
| 40 | 40 | DEF(TOK_EXTENSION, "__extension__") /* gcc keyword */ |
| 41 | + DEF(TOK_THREAD_LOCAL, "_Thread_local") /* C11 thread-local storage */ | |
| 41 | 42 | |
| 42 | 43 | DEF(TOK_GENERIC, "_Generic") |
| 43 | 44 | DEF(TOK_STATIC_ASSERT, "_Static_assert") |