On Thu, Sep 21, 2000 at 09:27:59AM +0200, Michael Schmitz wrote: > I'll try to look into that, I just had a similar case of non portable > varargs usage on PPC so maybe that's similar.
That would be great. BTW, I never heard any complaints about XView's varargs usage on ppc back in the glibc 2.0 days (but then, I don't know wheter somebody actually compiled it for ppc at that time). However, for glibc 2.1, somebody submitted a patch that changed the following in lib/libxview/attr/attr.c:94 and a few other places: #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) __va_copy(valist, valist1); __va_copy(avlist, avlist1); #else valist = valist1; avlist = avlist1; #endif If I look at the definition of __va_copy, it's #define __va_copy(dest, src) (dest) = (src) on all platforms except ppc, where it is #define __va_copy(dest, src) *(dest) = *(src) Is ppc varargs really that different from the rest of the world's, or could this be a bug in gcc's header files? Martin -- Martin Buck E-mail: [EMAIL PROTECTED] or [EMAIL PROTECTED] Phone/Fax: +41-56-4963841 Snail-mail: Steigstrasse 13, CH-5452 Oberrohrdorf PGP key available, MIME mail welcome WWW: http://home.pages.de/~mbuck/