This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: va_list and char* are ambiguous
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 3 Mar 2014 13:47:10 +0100
- Subject: Re: va_list and char* are ambiguous
- Authentication-results: sourceware.org; auth=none
- References: <CAJoYywUaRcCx4sQ0j_HZZ77urmPjg19fPP=KuM1d8i8Ec3mmWQ at mail dot gmail dot com> <CAJoYywWOHqh9qpFg3skt9XJFVoYgpa0C=g+g6mtEATiArLbgLg at mail dot gmail dot com> <5313A789 dot 2080205 at gmail dot com> <CAJoYywV7O5EWvtK5oWzgOSK=BrNk+WtSUtYiS4SebHhK-kD0dw at mail dot gmail dot com>
Hi,
cygwin64 shares for 64-bit the ABI of Windows native. This is caused
by different reasons (eg. unwind-table description for prologue, etc).
So for Windows targets va_list is indeed of 'char *' type. And this
is ok. The variant of x86_64 abi, which uses indeed a
structure-variant for variadic-arguments plus some call-abi
extensions, isn't recommented for on Windows. If your linux code
relies on structure-variadic x86_64-ABI, it seems to me broken, and
needs to be ported.
Hope this answers your question.
Regards,
Kai
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple