On Tue, 24 Aug 2004, Daniel Kobras wrote: > On Tue, Aug 24, 2004 at 06:21:57PM +0200, Kevin Glynn wrote: > > fyi, it is because va_list is declared as a one-element array of > > structs on powerpc, unlike other architectures so code like: > > > > va_list Arg4 = (va_list) OZ_getForeignPointer((*(_OZ_LOC[(4)]))); > > > > fails on powerpc, because you can't cast to an array. > > And you may not assign to a va_list. Use va_copy() instead to be > portable.
Yep - that's got to be the number one porting problem on powerpc :-) But is this still an issue, with varargs being superseded by stdarg these days? Last time I checked I could not find the funny va_list declaration in the gcc headers anymore. Michael