[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] BUG: called function should pop the arguments when us
Re: [Tinycc-devel] BUG: called function should pop the arguments when using fastcall
Wed, 23 Aug 2017 14:42:47 +0200
Thunderbird 220.127.116.11 (Windows/20090812)
I found that TCC implement 'fastcall' that the calling function pops
arguments. However, according to MSDN
(https://msdn.microsoft.com/en-us/library/6xa169sk.aspx), the called
function should pop arguments when using fastcall.
I provided a patch and I have already pushed it to the mob branch,
since I'm new to TCC and compilers, please review my patch carefully.
I also wrote a test case which is in attachments, you may use the
testcase to discover the problem.
Did someone try this on Linux? The wanted behavior might be different.