[Bug stdio/18982] va_list and vprintf
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Oct 2 10:10:00 GMT 2015
https://sourceware.org/bugzilla/show_bug.cgi?id=18982
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at sourceware dot org |fweimer at redhat dot com
--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to joseph@codesourcery.com from comment #1)
> As specified in the x86_64 ABI, va_list is an array type on x86_64.
> Thus, this is a documentation issue (failing to point out that when
> va_list is an array type, it is passed by reference).
We could theoretically use va_copy in vprint and similar functions, and restore
it before returning. But this has a performance impact, and I don't think it's
worth it.
So I'm in favor of a documentation change as well.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list