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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to