[LLVMbugs] [Bug 5728] New: Miscompilation with fastcall

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Dec 8 15:23:45 PST 2009


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

           Summary: Miscompilation with fastcall
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 5511


Created an attachment (id=3928)
 --> (http://llvm.org/bugs/attachment.cgi?id=3928)
Testcase (IL)

C testcase:
static __attribute((fastcall)) void*a(void*x,double y,int z) { return 0; }
__attribute((fastcall)) void*b(void*x,double y){return a(x,y,10);}
int main() { b(0,0); return 0; }

Compiling and running the result with clang on x86-32 Linux leads to a crash. 
It looks like something is wrong with the epilogue for b().

IL testcase attached; to reproduce the issue with the IL testcase, use llc -O0.


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