Bug in va_list/va_arg on PowerPC
Stephane Bortzmeyer
bortzmeyer@pasteur.fr
Wed Jul 19 02:38:00 GMT 2000
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.
More information about the Gcc-bugs
mailing list