[llvm-bugs] [Bug 29143] New: va_arg in ms_abi variadic functions should expect large structs to be passed by reference
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 25 13:46:43 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=29143
Bug ID: 29143
Summary: va_arg in ms_abi variadic functions should expect
large structs to be passed by reference
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rnk at google.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
As we discovered in http://llvm.org/pr20569, MSVC passes structs larger than 8
bytes indirectly by reference. We now emit the correct code on Win64, but we
don't do the right thing for functions marked ms_abi because they use
__builtin_va_arg instead of __builtin_ms_va_arg.
We should do something so that ms_abi functions on a sys V system act more like
native win64 functions.
--
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/20160825/25d2d1b9/attachment-0001.html>
More information about the llvm-bugs
mailing list