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

Eli Friedman eli.friedman at gmail.com
Tue Jan 3 11:04:01 PST 2012


On Tue, Jan 3, 2012 at 10:12 AM, Joe Groff <arcata at gmail.com> wrote:
> On Mon, Jan 2, 2012 at 10:49 AM, Michael Spencer <bigcheesegs at gmail.com> wrote:
>> 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 ;/.
>
> I attached some patches for Clang and LLVM to the issue I submitted:
>
> http://llvm.org/bugs/show_bug.cgi?id=11688
>
> Do these changes need to be predicated on the -cxx-abi setting?

No; -cxx-abi is only supposed to affect C++specific features, like
mangling and typeinfo.

Please submit patches to llvm-commits/cfe-commits with testcases.

-Eli



More information about the cfe-dev mailing list