Re: [Tinycc-devel] va_list bug on x86_64, version 0.9.27

2025-02-13 Thread avih via Tinycc-devel
On Windows, with current tcc mob, both tcc-32 and tcc-64 print 17, as do mingw gcc 32 and 64 on Windows. On linux (Ubuntu 64), tcc-mob also prints 17 for me, as does gcc. FYI, avih On Thursday, February 13, 2025 at 04:11:18 PM GMT+2, DFP via Tinycc-devel wrote: Hello. va_arg seems to

[Tinycc-devel] va_list bug on x86_64, version 0.9.27

2025-02-13 Thread DFP via Tinycc-devel
Hello. va_arg seems to take the value from unexpected location on x86_64, in a case where a variable argument function returns a struct that is larger than 16 bytes. I tested on plain x86 (32 bit) via JSLinux (https://bellard.org/jslinux/vm.html?url=alpine-x86-xwin.cfg&mem=256&graphic=1) and t