This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14557] va_list is automatically taken address-of when passed as argument
- From: "zack at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2004 21:55:51 -0000
- Subject: [Bug target/14557] va_list is automatically taken address-of when passed as argument
- References: <20040312161718.14557.olof.lindholm@bea.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zack at codesourcery dot com 2004-03-13 21:55 -------
Subject: Re: va_list is automatically taken address-of
when passed as argument
"jsm at polyomino dot org dot uk" <gcc-bugzilla@gcc.gnu.org> writes:
> The trouble is that in this example you're taking the address of a
> pointer to the first element of the array (namely, the parameter
> declared with the array type va_list which has pointer type because
> of the adjustment of parameter types).
Ah, so what's unportable is taking the address of a va_list which has
been passed to you as a value parameter? This I can see.
zw
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14557