Support multiple __label__ declarations
commit51f6e52dd3ee73b03e8dbad3a62fbf0767543a8e
authorPetr Skocik <pskocik@gmail.com>
Wed, 9 Jan 2019 17:20:15 +0000 (9 18:20 +0100)
committerPursuer <1596067968@qq.com>
Thu, 10 Jan 2019 18:32:47 +0000 (11 02:32 +0800)
treee7e5e0ef75a8e8bafcd8a2efb596dc2c0d3e0c0a
parent3f05d88d5bda06b40280710089bd3ede3a8fdaa0
Support multiple __label__ declarations

Support multiple __label__ declarations at the beginning of a block
as long as they're contiguous.

gcc and clang accept:
    { __label__ a,b; __label__ c;  /*...*/ }
.
Tcc would fail it. This patch makes it accept it.

The patch:
-        if (tok == TOK_LABEL) {
+        while (tok == TOK_LABEL) {
tccgen.c