Re: [head tinderbox] failure on powerpc/powerpc

From: Peter Grehan <grehan_at_freebsd.org>
Date: Sat, 21 Oct 2006 19:21:54 -0700
> cc -O2 -pipe  -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/powerpc -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/powerpc/src/lib/libc -I/src/lib/libc/resolv -DPOSIX_MISTAKE -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /src/lib/libc/stdio/xprintf.c
> /src/lib/libc/stdio/xprintf.c: In function `__v2printf':
> /src/lib/libc/stdio/xprintf.c:279: warning: passing arg 2 of `__builtin_va_copy' discards qualifiers from pointer target type
> *** Error code 1

  I did a quick change of

     va_copy(ap, ap1);

  to

     va_copy(ap, (va_list) ap1);

  .. and ended up with:

/usr/home/grehan/freebsd/dev_head/src/lib/libc/stdio/xprintf.c: In 
function `__v2printf':
/usr/home/grehan/freebsd/dev_head/src/lib/libc/stdio/xprintf.c:279: 
error: cast specifies array type

  A va_list on powerpc is a struct, but va_copy should do the right thing.

  Any C language geeks out there with advice ?

later,

Peter.
Received on Sun Oct 22 2006 - 00:21:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:01 UTC