[LLVMbugs] [Bug 20028] New: clang-cl adds an extra 'ret' to __declspec(naked) functions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 13 07:52:42 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20028
Bug ID: 20028
Summary: clang-cl adds an extra 'ret' to __declspec(naked)
functions
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: jmuizelaar at mozilla.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
__declspec(naked) void foo(int k, int r)
{
_asm {
ret;
}
}
cl gives:
_foo:
retl
clang-cl gives:
_foo:
movl 12(%ebp), %eax
movl 8(%ebp), %ecx
movl %eax, -4(%ebp)
movl %ecx, -8(%ebp)
retl
retl
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140613/f4a51caa/attachment.html>
More information about the llvm-bugs
mailing list