[LLVMbugs] [Bug 9166] New: Code generated for function returning struct incompatible with native ABI

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 8 04:00:06 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9166

           Summary: Code generated for function returning struct
                    incompatible with native ABI
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: zvi.rackover at intel.com
                CC: llvmbugs at cs.uiuc.edu


The Win32 native compiler, VC, generates a call to a function returning a
struct in the following manner:
1. The caller allocates a buffer which will be filled by the caller with the
return value
2. Before calling, the caller pushes the address of this buffer on the stack
3. Unlike other targets, such as Linux32, the callee does not pop the address
before returning

Currently, the Win32 target does not follow the above rules. This becomes an
issue when native-compiled and LLVM-compiled codes are mixed.

-- 
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