[uClibc] first try of gcc 4.0.0 compiling for ppc

Jan-Benedict Glaw jbglaw at lug-owl.de
Fri Jun 10 11:29:33 UTC 2005


On Fri, 2005-06-10 12:48:50 +0200, Wojciech Kromer <wojciech.kromer at dgt.com.pl> wrote:
> /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?
> there is just:
> 
>  ++(unsigned long *)tmp_to = *++(unsigned long *)from;

Casted lvalues aren't allowed any longer. So change the code to not
require the lefthand cast at all.

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw at lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20050610/3bc1a358/attachment-0002.pgp 


More information about the uClibc mailing list