[PATCH 1/5] widl: Introduce an "aggregate_return" function attribute.

Henri Verbeet hverbeet at gmail.com
Thu Sep 4 08:43:02 CDT 2014

On 4 September 2014 15:27, Alexandre Julliard <julliard at winehq.org> wrote:
> The attribute is certainly ugly.
Well, no argument there. Do we have any alternatives? We could of
course also just change the function prototype, but then that would
break source compatibility.

> Also it seems to me you are doing this
> the wrong way around; you don't want to add a return parameter, you want
> to avoid one. Check how div() is handled.
No, the issue is that gcc returns the result in eax:edx, but native
expects a return parameter, so the reverse of MSVCRT_div(). It's most
obvious when running d2d1 tests (not submitted yet) compiled with
mingw against Windows.

More information about the wine-devel mailing list