Re: [Tinycc-devel] test failures on win32 x86-64

2022-10-19 Thread Michael Matz
Hi, On Wed, 19 Oct 2022, Domingo Alvarez Duarte wrote: Looking through the code on "tests/tcctest.c" there is more places using "[unsigned] long" that probably will need to be revised to use "[unsigned] long long" or "size_t". Nah, you can't just blindly grep for "long" and randomly replace

Re: [Tinycc-devel] test failures on win32 x86-64

2022-10-19 Thread Domingo Alvarez Duarte
Looking through the code on "tests/tcctest.c" there is more places using "[unsigned] long" that probably will need to be revised to use "[unsigned] long long" or "size_t". Probably in several other places see bellow for a search on my fork: = va_list.c extern void *memcpy(void *dest,

Re: [Tinycc-devel] test failures on win32 x86-64

2022-10-19 Thread Domingo Alvarez Duarte
Hello Michael ! Thank you for your great work ! I applied your changes to my fork but the tests continue to fail on window see the result here https://github.com/mingodad/tinycc/actions/runs/3282234645/jobs/5405354710 . Cheers ! On 19/10/22 14:36, Michael Matz wrote: Hello, On Fri, 14

Re: [Tinycc-devel] test failures on win32 x86-64

2022-10-19 Thread Michael Matz
Hello, On Fri, 14 Oct 2022, avih via Tinycc-devel wrote: 0x7ff72b42b266 <+50>: repnz scas %es:(%rdi),%al 0x7ff72b42b268 <+52>: dec %edi This is the problem. "dec %edi" truncates the %rdi register to 32bit by zero-extension, so that ... 0x7ff72b42b26a <+54>: mov