This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/18982] va_list and vprintf
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 02 Oct 2015 10:10:09 +0000
- Subject: [Bug stdio/18982] va_list and vprintf
- Auto-submitted: auto-generated
- References: <bug-18982-131 at http dot sourceware dot org/bugzilla/>
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.