[cfe-commits] Patch for pr11688 to make i386-pc-win32 subtarget use SmallStructInRegABI
Eli Friedman
eli.friedman at gmail.com
Tue Jan 17 12:45:06 PST 2012
On Tue, Jan 17, 2012 at 12:23 PM, Joe Groff <arcata at gmail.com> wrote:
> Hi everyone. Attached is a small patch that makes Clang pass small
> structs in registers when targeting i386-pc-win32, for compatibility
> with MSVC. Let me know if there are any necessary additions or
> modifications. Thanks.
The change to lib/CodeGen/TargetInfo.cpp seems fine. The test seems
like it's overkill, since it looks like it was mostly copy-pasted;
testing a couple small functions which illustrate the significant
characteristics would suffice.
-Eli
More information about the cfe-commits
mailing list