This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Bootstrap failure (Re: [Patch] Java: Prepare for %q, %< and %> in diagnostic messages)
On Wed, Oct 06, 2004 at 03:47:41PM +0200, Paolo Bonzini wrote:
> >It says in 7.15 "va_list is an object type". So, you can take its
> >address and later dereference to get an lvalue that is a va_list.
>
> I wonder if it is it legal to declare a va_list which is an array, and
> even if it is, why not changing it to an array-within-a-struct.
That would change the ABI.
If you pass va_list by value to say vprintf and the arch in question
doesn't pass structures by reference, it is different if va_list
is an array (in which case you pass its address) or if it is a structure
with array inside (in that case you pass the structure).
Jakub