Fix 64bit enums and switch cases
commit22f5fccc2c06b8f7584b41d981742d2afe153a71
authorMichael Matz <matz@suse.de>
Sun, 6 Nov 2016 04:02:11 +0000 (6 05:02 +0100)
committerMichael Matz <matz@suse.de>
Thu, 15 Dec 2016 16:49:56 +0000 (15 17:49 +0100)
tree7086db0ecd652a73158474831bce129dd8f69994
parent3e77bfb6e9b286bbb53377fb5d7343e58ba34127
Fix 64bit enums and switch cases

See testcases.  We now support 64bit case constants.  At the same time
also 64bit enum constants on L64 platforms (otherwise the Sym struct
isn't large enough for now).  The testcase also checks for various
cases where sign/zero extension was confused.
tcc.h
tccgen.c
tests/tcctest.c