Bug in va_list/va_arg on PowerPC

Stephane Bortzmeyer bortzmeyer@pasteur.fr
Tue Jul 18 05:36:00 GMT 2000


bortzmeyer@yoko:~/tmp$   gcc -c test-va.c
test-va.c: In function `main':
test-va.c:7: incompatible types in assignment

bortzmeyer@yoko:~/tmp$   cat test-va.c 
#include <stdarg.h> 

int main () {

  va_list values;
  va_list args;
  values = va_arg(args,va_list);

}

[Output of gcc -E attached.]

The same code compiles fine on an i386, same version of gcc, same OS, and on 
an Alpha, same version of gcc, Tru64 OS.


[The actual code - the Java Virtual Machine kaffe - is much longer.]



The test machine is a Macintosh PowerPC G4 (PowerBook)

bortzmeyer@yoko:~/tmp$ uname -a
Linux yoko 2.2.15pre20 #1 Thu May 4 11:48:16 EDT 2000 ppc unknown

bortzmeyer@yoko:~/tmp$ gcc -v --save-temps  test-va.c 
Reading specs from /usr/lib/gcc-lib/powerpc-linux/2.95.2/specs
gcc version 2.95.2 20000313 (Debian GNU/Linux)
 /usr/lib/gcc-lib/powerpc-linux/2.95.2/cpp -lang-c -v -D__GNUC__=2 
-D__GNUC_MINOR__=95 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ 
-D__powerpc__ -D__PPC -D__powerpc -Acpu(powerpc) -Amachine(powerpc) 
-D__CHAR_UNSIGNED__ -D_CALL_SYSV -D_BIG_ENDIAN -D__BIG_ENDIAN__ 
-Amachine(bigendian) -D_ARCH_PPC -D__unix__ -D__linux__ -Dunix -Dlinux 
-Asystem(unix) -Asystem(posix) test-va.c test-va.i
GNU CPP version 2.95.2 20000313 (Debian GNU/Linux) (PowerPC GNU/Linux)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/powerpc-linux/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/lib/gcc-lib/powerpc-linux/2.95.2/../../../../include/g++-3
 /usr/lib/gcc-lib/powerpc-linux/2.95.2/../../../../powerpc-linux/include
End of omitted list.
 /usr/lib/gcc-lib/powerpc-linux/2.95.2/cc1 test-va.i -quiet -dumpbase 
test-va.c -version -o test-va.s
GNU C version 2.95.2 20000313 (Debian GNU/Linux) (powerpc-linux) compiled by 
GNU C version 2.95.2 20000313 (Debian GNU/Linux).
test-va.c: In function `main':
test-va.c:7: incompatible types in assignment



More information about the Gcc-bugs mailing list