[uClibc] first try of gcc 4.0.0 compiling for ppc

Joakim Tjernlund joakim.tjernlund at lumentis.se
Fri Jun 10 11:45:12 UTC 2005


> 
> 
> /opt/uclibc/ppc_4_0_0/build_powerpc_nofpu/staging_dir/bin/powerpc-linux-uclibc-gcc  
> -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing   
> -msoft-float  -fno-builtin -nostdinc -D_LIBC -I../../../include -I.  -Os 
> -funit-at-a-time -isystem 
> /opt/uclibc/ppc_4_0_0/build_powerpc_nofpu/staging_dir/lib/gcc/powerpc-linux-uclibc/4.0.0/include 
> -DNDEBUG -fpic -DL_memcpy string.c -c -o memcpy.o
> string.c: In function 'memcpy':
> string.c:63: error: invalid lvalue in increment
> string.c:63: error: invalid lvalue in increment
> string.c:70: error: invalid lvalue in increment
> string.c:70: error: invalid lvalue in increment
> 
> 
> -are there any syntax changes from gcc 3.4.3 to 4.0.0?

Nope, something that only caused a warning 3.4.3 is not valid code
in 4.0

>  there is just:
> 
>   ++(unsigned long *)tmp_to = *++(unsigned long *)from;
> 
> in line 63

Try the patch in http://busybox.net/bugs/view.php?id=245
and report how it works. I will commit it as soon as somebody
confirms that is works well.

 Jocke




More information about the uClibc mailing list