[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: va_list problems with optimize option in gcc



> When compiling the valid code below with -O4, the lines getting the
> va_arg with a float and char will generate this error. Why is this error
> happening under GCC on PPC only? I've seen some posts about this problem

Because on PPC, doing bad things with va_lists means stack corruption, no
questions asked.
See va-ppc.h for the gory details.

> /* and here too. */
>                 foo_Int8(input, va_arg(args, Int8));

Use foo_Int8(input, (int8) va_arg(args, Int32));

	Michael


-- 
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: