This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb and invalid lvalue in assignment


On Wednesday 16 Nov 2005 11:29 am, Steven Scholz wrote:
> Hi all,
>
> I am trying to build a arm cross tool chain on a SuSE 10.0 system.
>
> Host gcc is gcc (GCC) 4.0.2 20050901
>
> Building the gdb bails out with:
>
> /opt/sandkasten/crosstool-0.38/build/arm-softfloat-linux-gnu/gcc-3.4.4-glib
>c-2.3.5-linux-2.6.12/gdb-6.3/sim/arm/iwmmxt.c: In function 'WMAC':
> /opt/sandkasten/crosstool-0.38/build/arm-softfloat-linux-gnu/gcc-3.4.4-glib
>c-2.3.5-linux-2.6.12/gdb-6.3/sim/arm/iwmmxt.c:2117: error: invalid lvalue in
> assignment
> /opt/sandkasten/crosstool-0.38/build/arm-softfloat-linux-gnu/gcc-3.4.4-glib
>c-2.3.5-linux-2.6.12/gdb-6.3/sim/arm/iwmmxt.c:2133: error: invalid lvalue in
> assignment
>
> Are there any patches for the gdb to fix that?

gcc4 (your system compiler) is just more picky, just change the dodgy 
promotion casts on the left side of the expression to be on the right side, 
like they should have been all along, if indeed they are needed at all.

regards
---
Matthew J Fletcher
Embedded Software
Serck Controls Ltd
---
**********************************************************************
Serck Controls Ltd, Rowley Drive, Coventry, CV3 4FH, UK
Tel: +44 (0) 24 7630 5050   Fax: +44 (0) 24 7630 2437
Web: www.serck-controls.com  Admin: post@serck-controls.co.uk
A subsidiary of Serck Controls Pty. Ltd. Reg. in England No. 4353634
**********************************************************************
This email and files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this email in error please notify 
the above. Any views or opinions presented are those of the author 
and do not necessarily represent those of Serck Controls Ltd. 


This message has been checked by MessageLabs
******************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]