While trying to build libc for PowerPC, I ran into the problem that for some reason gcc gave me this:
/home/benno/powerpc/lib/libc/stdio/vfprintf.c:551: incompatible types in assignment For the this: int __vfprintf(FILE *fp, const char *fmt0, va_list ap) { ... va_list orgap; /* original argument pointer */ ... orgap = ap; Replacing the orgap = ap with va_copy(orgap, ap) (as in the attached diff) makes the problem go away. Does anyone mind if I commit this? -- Benno Rice [EMAIL PROTECTED]
Index: lib/libc/stdio/vfprintf.c =================================================================== RCS file: /home/ncvs/src/lib/libc/stdio/vfprintf.c,v retrieving revision 1.40 diff -u -r1.40 vfprintf.c --- lib/libc/stdio/vfprintf.c 22 Mar 2002 21:53:04 -0000 1.40 +++ lib/libc/stdio/vfprintf.c 19 May 2002 12:15:05 -0000 @@ -548,7 +548,7 @@ fmt = (char *)fmt0; argtable = NULL; nextarg = 1; - orgap = ap; + va_copy(orgap, ap); uio.uio_iov = iovp = iov; uio.uio_resid = 0; uio.uio_iovcnt = 0;
signature.asc
Description: This is a digitally signed message part