[LLVMbugs] [Bug 4203] Linux/PPC ABI: Obvious way of calling a C function which takes a struct paramater doesn' t work

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue May 12 11:46:58 PDT 2009


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Chris Lattner <clattner at apple.com>  2009-05-12 13:46:58 ---
Unfortunately, this is not how LLVM interacts with native ABIs.  You need to
know about the native ABI to know how structs are passed by value.  This is
annoying, but we don't have a good solution for this.  You'll note that
llvm-gcc (or clang) produce different llvm ir for functions returning structs
when targetting x86-32 and x86-64 for example.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list