]> granicus.if.org Git - clang/commit
x86-32 Darwin ABI: Handle small structures correctly.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 1 Apr 2009 07:45:00 +0000 (07:45 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 1 Apr 2009 07:45:00 +0000 (07:45 +0000)
commitcf6bde343ff5653744ca782e04d5a9c54b260042
tree0299731a139cedf7dea1e3721eba404371cf3e69
parentdfc6b80ee13a9102cd67e0b2398fa999eebcbf8e
x86-32 Darwin ABI: Handle small structures correctly.
 - Small structures are returned in a register if:
    1. They fit nicely in a  register.
    2. All fields fit nicely in a register.
   (more or less)

 - We now pass the first 5000 ABITests if unions are disabled.

 - <rdar://problem/6497882> [irgen] x86-32 ABI compatibility with
   small structs

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68197 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGen/x86_32-arguments.c