[cfe-dev] Clang i386-pc-win32 struct return-by-value doesn't match MSVC

Michael Spencer bigcheesegs at gmail.com
Mon Jan 2 10:49:19 PST 2012


On Sun, Jan 1, 2012 at 11:57 AM, Joe Groff <arcata at gmail.com> wrote:
> On Sun, Jan 1, 2012 at 11:52 AM, Eli Friedman <eli.friedman at gmail.com> wrote:
>> Yes, a bug.  Please file at llvm.org/bugs/ , or if you're interested
>> you can try writing a patch yourself.  The relevant code is
>> lib/CodeGen/TargetInfo.cpp in clang.
>
> Filed http://llvm.org/bugs/show_bug.cgi?id=11688 . Thanks for the quick reply.
>
> -Joe

Note that pc-win32 currently uses the Itanium ABI. To properly test
this you need to pass "-Xclang -cxx-abi -Xclang microsoft".

I would like to switch pc-win32 over to using the microsoft ABI by
default, even though it is not complete, as the code that it currently
generates is mostly useless. However, I do know of one person that
uses the current behavior with thunks to convert the ABI over ;/.

- Michael Spencer




More information about the cfe-dev mailing list