Fix sub-int returns on x86-64 and i386
commit749d19d70b91af4bf027458a138998d4f508d3ca
authorMichael Matz <matz@suse.de>
Sun, 10 Feb 2019 17:27:41 +0000 (10 18:27 +0100)
committerMichael Matz <matz@suse.de>
Sun, 10 Feb 2019 17:27:41 +0000 (10 18:27 +0100)
tree71cec35be8934df2f1b14318984ce1bd99d06916
parent5f737fb4d390c040f0196a5b6f8977630c479a06
Fix sub-int returns on x86-64 and i386

the ABIs (and other compilers) extend sub-int return values in the
caller.  TCC extends them in the callee.  For compatibility with
those other compilers we have extend them in the caller as well.
That introduces a useless double extension in pure TCC-compiled code,
but fixing that generally requires that the code generator of TCC would
understand sub-int types.  For the time being bite the bullet.
i386-gen.c
x86_64-gen.c