On Mon, Jul 30, 2001 at 06:59:22PM +0200, Michael Schmitz wrote: > On Mon, 30 Jul 2001, Ben Collins wrote: > > > I realise that both reuse same va_list more that once. The following > > > probram demonstrate this bug: > > > > stdarg is implemented in gcc, AFAIK. > > And stdarg doesn't have these issues? The problem is that va_list isn't a > pointer on powerpc so it gets modified across calls. Saving the initial > va_list state and restoring it before reuse should solve this for varargs.
No, stdarg and vararg are both implemented in gcc, so the bug is not in glibc. Which is why I reassigned it to gcc. I agree with your bug, since on sparc it works as expected. It was just filed against the wrong package. Ben -- .----------=======-=-======-=========-----------=====------------=-=-----. / Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \ ` [EMAIL PROTECTED] -- [EMAIL PROTECTED] -- [EMAIL PROTECTED] ' `---=========------=======-------------=-=-----=-===-======-------=--=---'