Re: [Mingw-w64-public] MSVC returns aggregate types of up to 8 bytes via EAX register

2018-12-20 Thread JonY via Mingw-w64-public
On 12/20/18 6:38 PM, Mateusz wrote: > Hello, > > In gcc 9.0 r266355 there was change in ABI for mingw-w64 (64-bit) target -- > "Return AX_REG instead of FIRST_SSE_REG for 4 or 8 byte modes". It is wrong > -- now function return double in rax instead of xmm0 register. This patch > shows how to

[Mingw-w64-public] MSVC returns aggregate types of up to 8 bytes via EAX register

2018-12-20 Thread Mateusz
Hello, In gcc 9.0 r266355 there was change in ABI for mingw-w64 (64-bit) target -- "Return AX_REG instead of FIRST_SSE_REG for 4 or 8 byte modes". It is wrong -- now function return double in rax instead of xmm0 register. This patch shows how to change return register from xmm0 to eax/rax