This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in va_list/va_arg on PowerPC
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: Bug in va_list/va_arg on PowerPC
- From: Stephane Bortzmeyer <bortzmeyer at pasteur dot fr>
- Date: Wed, 19 Jul 2000 11:37:34 +0200
- cc: Stephane Bortzmeyer <bortzmeyer at pasteur dot fr>, gcc-bugs at gcc dot gnu dot org, edeveaud at pasteur dot fr, "Edouard G. Parmelan" <egp at free dot fr>
On Tuesday 18 July 2000, at 15 h 21, the keyboard of Franz Sirl
<Franz.Sirl-kernel@lauterbach.com> wrote:
> This is no bug, this is non-portable code. Remember, va_list is an array
> type on Linux/PPC.
OK, I reported the bug to the kaffe people, together with a proposed patch. Thanks.
It's even documented in va_arg(3):
Because the address of this parameter is used in the
va_start macro, it should not be declared as a register
variable, or as a function or an array type.